[File] JPEG2000 misidentified as SIMH-tape-data

Thomas Ledoux tledouxfr at gmail.com
Sat May 31 17:31:40 UTC 2025


Hello,

In file 5.45, some JPEG2000 images are misidentified as
"application/SIMH-tape-data".
This can be avoided using the "-e simh" argument showing the problem is
located in the is_simh.c.

Indeed, any identification made directly by code supersedes any pattern
defined in MAGIC.

In the case of SIMH-tape-data vs JPEG2000, the problem is emphasized by the
fact that the first one is little-endian while the second is big-endian. So
only 5 longs (over 7MB of data) are tested to declare  the file as being
SIMH-data.

I propose a pull-request at https://github.com/file/file/pull/145 that
tries to alleviate this issue.

Thanks
   Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.astron.com/pipermail/file/attachments/20250531/d0660c46/attachment.htm>


More information about the File mailing list