1733427672.FILE5_46-14-g60b2032b.pr-571-jschleus-some-zip-files-are-misclassified-as-data.patch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. Subject: PR/571: jschleus: Some zip files are misclassified as data
  2. Origin: upstream, commit FILE5_46-14-g60b2032b <https://github.com/file/file/commit/FILE5_46-14-g60b2032b>
  3. Author: Christos Zoulas <christos@zoulas.com>
  4. Date: Thu Dec 5 19:41:12 2024 +0000
  5. Bug-Debian: https://bugs.debian.org/1102577
  6. --- a/magic/Magdir/archive
  7. +++ b/magic/Magdir/archive
  8. @@ -1795,6 +1795,17 @@
  9. !:ext zip/cbz
  10. +# Generic zip archives (Greg Roelofs, c/o zip-bugs@wkuvx1.wku.edu)
  11. +# Next line excludes specialized formats:
  12. +0 name zipgeneric
  13. +>4 beshort x Zip archive data, at least
  14. +!:mime application/zip
  15. +>4 use zipversion
  16. +>4 beshort x to extract
  17. +>8 beshort x \b, compression method=
  18. +>8 use zipcompression
  19. +>0x161 string WINZIP \b, WinZIP self-extracting
  20. +
  21. 0 string PK\003\004
  22. !:strength +1
  23. # IOS/IPadOS IPA file (Zip archive)
  24. @@ -2132,17 +2143,11 @@
  25. >>>>>>(-6.l) search/9000 kmp.json Keyman Compiled Package File
  26. !:mime application/vnd.keyman.kmp+zip
  27. !:ext kmp
  28. +>>>>>+4 default x
  29. +>>>>>>0 use zipgeneric
  30. -# Generic zip archives (Greg Roelofs, c/o zip-bugs@wkuvx1.wku.edu)
  31. -# Next line excludes specialized formats:
  32. >>>>+4 default x
  33. ->>>>>4 beshort x Zip archive data, at least
  34. -!:mime application/zip
  35. ->>>>>4 use zipversion
  36. ->>>>>4 beshort x to extract
  37. ->>>>>8 beshort x \b, compression method=
  38. ->>>>>8 use zipcompression
  39. ->>>>>0x161 string WINZIP \b, WinZIP self-extracting
  40. +>>>>>0 use zipgeneric
  41. # Zip archives (Greg Roelofs, c/o zip-bugs@wkuvx1.wku.edu)
  42. 0 string PK\005\006 Zip archive data (empty)