Skip to content
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

Fix endianness issues in macho module #2041

Merged
merged 6 commits into from
Feb 12, 2024
Merged

Fix endianness issues in macho module #2041

merged 6 commits into from
Feb 12, 2024

Conversation

plusvic
Copy link
Member

@plusvic plusvic commented Feb 12, 2024

This is a backward incompatible change that affects the macho.magic field. After this change the value in the magic field looks exactly as it looks in the file regardless of the endianness of the current platform, if the file starts with CA FE BA BE the value in magic is 0xCAFEBABE, not 0xBEBAFECA as it used to be in little-endian architectures.

Before this change, the magic value inconsistent between platforms with different endianness.

plusvic and others added 6 commits February 12, 2024 12:44
This is backward compatible change that affects the `magic` field. After this change the value in the `magic` field looks exactly as it looks in the file regardless of the endianness of the current platform, if the file starts with `CA FE BA BE` the value in magic is `0xCAFEBABE`, not `0xBEBAFECA` as it used to be in little-endian architectures.
@plusvic plusvic merged commit 4369ca6 into master Feb 12, 2024
18 of 20 checks passed
@plusvic plusvic deleted the macho_endianness branch February 12, 2024 14:23
vthib added a commit to vthib/boreal that referenced this pull request Feb 13, 2024
vthib added a commit to vthib/boreal that referenced this pull request Feb 16, 2024
vthib added a commit to vthib/boreal that referenced this pull request Feb 16, 2024
vthib added a commit to vthib/boreal that referenced this pull request Feb 16, 2024
vthib added a commit to vthib/boreal that referenced this pull request Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant