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

read/line: check for overflow when advancing the address #731

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

philipc
Copy link
Collaborator

@philipc philipc commented Jul 4, 2024

Addresses in line sequences should only increase.
The addr2line crate relies on this for its binary search.

Addresses in line sequences should only increase.
The `addr2line` crate relies on this for its binary search.
@@ -800,21 +800,21 @@ impl LineRow {
&mut self,
instruction: LineInstruction<R>,
program: &mut Program,
) -> bool
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Note: this is a breaking change.

@philipc philipc merged commit 450cb69 into gimli-rs:master Jul 4, 2024
20 checks passed
@philipc philipc deleted the line-overflow branch July 4, 2024 05:11
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