-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Are we reading the UUID correctly? #7
Comments
It's a 16 byte value. In 4, 2, 2, and 8 byte chunks. From what I've seen the 8 byte chunk is read raw, but the other sections might have endianness issues. For instance look at this ELFSharp Code:
Reader is a simple Endian reader. But, what's confusing to me a little bit, is why the code is blindly reverseing 0-3, 4-5, and 6-7 bytes rather than consulting the endianness of the reader? Here's what chatgpt wrote (which doesn't help much I think):
|
macho-uuid/src/macho.ts
Lines 127 to 136 in c0d00f6
We might need to read either LE or BE depending on the magic sequence.
The text was updated successfully, but these errors were encountered: