You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A few specific files that are proper docx type are being detected as zip. I looked into it and the current code checks for a matching mime type identifier in the beginning of the buffer, checking the first document in the zipped file. However as recently pointed out in the magic library (here), it is possible and valid to have trash documents/bytes anywhere in the zipped file, including the first document. The fix as noted in that link is that you need to skip over these trash bytes. Could we get that fix ported to this library?
The text was updated successfully, but these errors were encountered:
A few specific files that are proper docx type are being detected as zip. I looked into it and the current code checks for a matching mime type identifier in the beginning of the buffer, checking the first document in the zipped file. However as recently pointed out in the
magic
library (here), it is possible and valid to have trash documents/bytes anywhere in the zipped file, including the first document. The fix as noted in that link is that you need to skip over these trash bytes. Could we get that fix ported to this library?The text was updated successfully, but these errors were encountered: