-
-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: binary parsing error: Buffer is too short for 52 arches #170
Comments
When I add --exclude "*.class" it seems to work |
We're currently only reading the 4 byte header magic to determine if a file is a Mach-O. Clearly this is prone to false positives. Sounds like we'll need to perform a more heavyweight validation to test if a file is a Mach-O. |
Well, with the exclude option it works. Thanks for a great piece of software that simplifies our life…
Best regards
Alexander von Zitzewitz
http://blog.hello2morrow.com
Book an online meeting with me:
https://calendly.com/hello2morrow

… On Nov 9, 2024, at 5:01 PM, Gregory Szorc ***@***.***> wrote:
We're currently only reading the 4 byte header magic to determine if a file is a Mach-O. Clearly this is prone to false positives.
Sounds like we'll need to perform a more heavyweight validation to test if a file is a Mach-O.
—
Reply to this email directly, view it on GitHub <#170 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AC67B2HAZ4I4FUCGV5IOERDZ72A3BAVCNFSM6AAAAABRNUSUI6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRWGQ3TMMJXGA>.
You are receiving this because you authored the thread.
|
When discovering that the two filetypes share the same magic header, I had a WTF moment. |
One of those strange things in IT. What can go wrong will go wrong. And obviously there is mo ‘magic header repository’ to avoid this kind of issue.
Best regards
Alexander von Zitzewitz
http://blog.hello2morrow.com
Book an online meeting with me:
https://calendly.com/hello2morrow

… On Dec 16, 2024, at 3:34 AM, Thomas Neidhart ***@***.***> wrote:
https://stackoverflow.com/questions/73546728/magic-value-collision-between-macho-fat-binaries-and-java-class-files
When discovering that the two filetypes share the same magic header, I had a WTF moment.
—
Reply to this email directly, view it on GitHub <#170 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AC67B2BKISNX4KUHO2625ED2F2GBHAVCNFSM6AAAAABRNUSUI6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNBUHEYTQOJYHA>.
You are receiving this because you authored the thread.
|
I thought that 0xCAFEBABE was a synonym for Java and everybody in the industry would know, but that is probably my skewed PoV being heavily invested in this ecosystem for a long time. Or it was a joke gone wrong. |
I am trying to sign an application written in Java with the following command:
rcodesign sign --p12-file ~/rcodesign/hello2morrow.p12 --p12-password-file ~/rcodesign/password.txt Sonargraph.app
This is the output:
registering signing key
automatically registered Apple CA certificate: Developer ID Certification Authority
automatically registered Apple CA certificate: Apple Root CA
using time-stamp protocol server http://timestamp.apple.com/ts01
automatically setting team ID from signing certificate: WJYWD3F88N
signing Sonargraph.app in place
signing bundle at Sonargraph.app
signing bundle at Sonargraph.app into Sonargraph.app
signing Mach-O file Contents/Eclipse/bin/ccspy
creating cryptographic signature with certificate Developer ID Application: hello2morrow, Inc. (WJYWD3F88N)
signing Mach-O file Contents/Eclipse/plugins/com.sun.jna_5.14.0.v20231211-1200/com/sun/jna/AltCallingConvention.class
Error: binary parsing error: Buffer is too short for 52 arches
What can I do to fix that?
The text was updated successfully, but these errors were encountered: