Skip to content

Conversation

@Tpt
Copy link
Contributor

@Tpt Tpt commented Apr 2, 2025

  • properly pick the correct section
  • clean error when fixup chains are used

Closes #5023

@Tpt Tpt added the CI-skip-changelog Skip checking changelog entry label Apr 2, 2025
@Tpt
Copy link
Contributor Author

Tpt commented Apr 2, 2025

(no changelog, this is a follow up to a previous not-relased-yet MR)

@abrisco
Copy link
Contributor

abrisco commented Apr 2, 2025

FYI: If you update

Issue #5023

to

closes #5023

then the issue will be automatically closed upon merging 😄

&& nlist.n_sect != NO_SECT as usize
&& is_introspection_symbol(name)
{
let section = &sections[nlist.n_sect - 1]; // Sections are counted from 1
Copy link
Member

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?

Copy link
Contributor Author

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
@Tpt Tpt force-pushed the tpt/introspection-bin-parsing branch from 4afa2be to 0e0f9d8 Compare April 4, 2025 15:19
Co-authored-by: Andre Brisco <91817010+abrisco@users.noreply.github.com>
Copy link
Member

@davidhewitt davidhewitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@davidhewitt davidhewitt enabled auto-merge April 4, 2025 17:03
@davidhewitt davidhewitt added this pull request to the merge queue Apr 4, 2025
Merged via the queue into PyO3:main with commit ac69f5d Apr 4, 2025
52 checks passed
@Tpt Tpt deleted the tpt/introspection-bin-parsing branch April 24, 2025 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI-skip-changelog Skip checking changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

range end index out of range error in pyo3-introspection

4 participants