[arch-projects] [namcap] FS#34300 False positive on Mach-O universal binary

Michael Straube michael.straube at posteo.de
Mon Dec 3 11:31:47 UTC 2018


Hi,

namcap does not distinguish java class files from Mach-O files since
both use the same byte magic CAFEBABE. See FS#34300

Implementing this would only need a test if the value of the byte at
offset 7 is greater than 0x30.
See: https://github.com/file/file/blob/master/magic/Magdir/cafebabe

I think having Mach-O files in a package is a _very_ rare case.
But on the other hand implementing would be no big deal.

Would a patch for this be accepted, or is it not worth?

Regards,
Michael


More information about the arch-projects mailing list