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

Use nearest_section in FindNearestGeneralSection #162

Merged

Conversation

madebr
Copy link
Collaborator

@madebr madebr commented Sep 15, 2022

After the for-loop preceding this array access, section_no was always set to the section_no.
Hence this would always access out-of-bounds.

Found by the trusty address sanitizer.

@dethrace-labs
Copy link
Owner

dethrace-labs commented Sep 16, 2022

Doh, another good find! I'm not sure what happened here - my view of the OG code is using nearest_section correctly, I must have mistyped it somehow in dethrace :(

@dethrace-labs dethrace-labs merged commit 4c6e3a3 into dethrace-labs:main Sep 16, 2022
@madebr madebr deleted the fix-FindNearestGeneralSection branch September 16, 2022 03:19
@madebr
Copy link
Collaborator Author

madebr commented Sep 16, 2022

Bugs happen, otherwise we would be all out of jobs 😄

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.

None yet

2 participants