-
-
Notifications
You must be signed in to change notification settings - Fork 77
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(cfi): Skip u64::MAX FDEs when converting DWARF #868
Conversation
if fde.initial_address() == u64::MAX { | ||
return Ok(()); | ||
} | ||
|
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.
Is it possible to add test for this?
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.
Unfortunately I can't see how—our only example is a debug file from Riot, and we can't put that on GH.
Presumably even if the address overflow error in |
Not sure, but I've verified that each of those entries hits one of the two problems. |
5d93a16
to
bf4ee12
Compare
This pulls in getsentry/symbolic#868, allowing us to process some CFI in DWARF files that we previously rejected as broken.
We have seen FDEs with an initial address of
u64::MAX
in user-provided DWARF files. Such FDEs will invariably fail to process because of either an address overflow error ingimli
or an underflow in thelength
calculation in line 756. Therefore, we skip them immediately so we don't abort the processing of the entire file.