-
Notifications
You must be signed in to change notification settings - Fork 904
Introspection: Fixes Mach-O parsing #5034
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
Conversation
|
(no changelog, this is a follow up to a previous not-relased-yet MR) |
|
FYI: If you update
to then the issue will be automatically closed upon merging 😄 |
| && nlist.n_sect != NO_SECT as usize | ||
| && is_introspection_symbol(name) | ||
| { | ||
| let section = §ions[nlist.n_sect - 1]; // Sections are counted from 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this is a correction? Why did this not hit ci?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because there was a section right after with the exact same shift between positions in memory and positions in the file (a lot of Mach-O file do not have any shift and this is the case of the binary generated by maturin/cargo in the CI)
- properly pick the correct section - clean error when fixup chains are used
4afa2be to
0e0f9d8
Compare
Co-authored-by: Andre Brisco <91817010+abrisco@users.noreply.github.com>
davidhewitt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Closes #5023