Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to identify some ZIP files #3364

Open
DavidBuchanan314 opened this issue Dec 3, 2021 · 1 comment
Open

Fails to identify some ZIP files #3364

DavidBuchanan314 opened this issue Dec 3, 2021 · 1 comment
Assignees

Comments

@DavidBuchanan314
Copy link

For example, this one:

bggp

In fact, the only filetype identified is PNG.

Not detecting the PDF is understandable, since it's out-of-spec - the header appears too far into the file - although Firefox can still render it.

@ESultanik ESultanik self-assigned this Dec 3, 2021
@ESultanik
Copy link
Collaborator

As of version v0.3.0, PolyFile uses the libmagic file definition database (also used for the file command). Unfortunately, this database is rather strict, and only classifies this file as a PNG. You can confirm this by running file -k polyglot.png. We are in the process of relaxing these definitions such that more formats would be detected in this file. We expect this to be included in the next release (v0.3.5).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants