View Issue Details

IDProjectCategoryView StatusLast Update
0000396fileGeneralpublic2022-10-18 14:12
Reportermwfearnley Assigned Tochristos  
PrioritylowSeverityminorReproducibilityhave not tried
Status assignedResolutionopen 
PlatformLinuxOSUbuntu (WSL)OS Version20.04.4 LTS
Product Version5.38 
Summary0000396: JS source file misdetected as JPEG2000
DescriptionThe source code at https://jplayer.org/latest/dist/jplayer/jquery.jplayer.min.js is misdetected as "JPEG 2000 image".
The first six bytes ("/*! jP") is enough to trigger this identification.
Steps To Reproduce$ wget https://jplayer.org/latest/dist/jplayer/jquery.jplayer.min.js
$ file jquery.jplayer.min.js
jquery.jplayer.min.js: JPEG 2000 image

$ printf "/*! jP" > jp.txt
$ file jp.txt
jp.txt: JPEG 2000 image
TagsNo tags attached.

Activities

mwfearnley

2022-10-18 08:13

reporter  

jquery.jplayer.min.js (60,950 bytes)   
jquery.jplayer.min.js (60,950 bytes)   
jp.txt (6 bytes)   
/*! jP
jp.txt (6 bytes)   

christos

2022-10-18 13:04

manager   ~0003840

Can't reproduce in file 5.43.

mwfearnley

2022-10-18 13:47

reporter   ~0003841

OK, thanks.
I've managed to build the code from Github, and on a hunch I found the commit (and, I suspect, the removed line) that fixed it:

https://github.com/file/file/commit/b62c39d1e13a7547e634ce36272f94f3fd39cbc4#diff-b5e20963b12b6811f0ca24ddd36790e9f3016bd5bb7af6083ca585c50ed34d4fL33

It's beyond my understanding (of JPEG 2000, or Quicktime formats, or of file itself) to say much more though..

Does it warrant a regression test?

christos

2022-10-18 14:12

manager   ~0003842

Sure, I just added one.

Issue History

Date Modified Username Field Change
2022-10-18 08:13 mwfearnley New Issue
2022-10-18 08:13 mwfearnley File Added: jquery.jplayer.min.js
2022-10-18 08:13 mwfearnley File Added: jp.txt
2022-10-18 13:04 christos Assigned To => christos
2022-10-18 13:04 christos Status new => assigned
2022-10-18 13:04 christos Status assigned => feedback
2022-10-18 13:04 christos Note Added: 0003840
2022-10-18 13:47 mwfearnley Note Added: 0003841
2022-10-18 13:47 mwfearnley Status feedback => assigned
2022-10-18 14:12 christos Note Added: 0003842