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: Discard invalid line records and inlinees #747

Merged
merged 3 commits into from
Jan 23, 2023

Conversation

loewenheim
Copy link
Contributor

@loewenheim loewenheim commented Jan 20, 2023

As described in #746, broken Breakpad files sometimes contain line records that start before the function they supposedly belong to. This PR discards those records when parsing functions. It also does the same for inlinees, although we haven't actually seen this happen.

Should we report this to the user somehow or is it ok to discard the records silently?

@loewenheim loewenheim requested a review from a team January 20, 2023 16:38
@loewenheim loewenheim self-assigned this Jan 20, 2023
@loewenheim loewenheim changed the title fix(dwarf): Discard invalid line records and inlinees fix: Discard invalid line records and inlinees Jan 20, 2023
@loewenheim loewenheim linked an issue Jan 20, 2023 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Jan 20, 2023

Codecov Report

Merging #747 (e8ef1df) into master (bad5cb8) will increase coverage by 0.00%.
The diff coverage is 80.00%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #747   +/-   ##
=======================================
  Coverage   73.43%   73.43%           
=======================================
  Files          69       69           
  Lines       14875    14885   +10     
=======================================
+ Hits        10923    10931    +8     
- Misses       3952     3954    +2     

@loewenheim loewenheim merged commit 176d63c into master Jan 23, 2023
@loewenheim loewenheim deleted the fix/invalid-line-records branch January 23, 2023 09:33
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.

Bad line record addresses in Breakpad sym files can cause problems
2 participants