Currently when the .eh_frame section is truncated so that
CFI instructions can't be read, it is possible to enter
an infinite loop.
It happens because CFIProgram::parse does not handle errors properly.
This patch fixes the issue.
Differential D82017
[DebugInfo/DWARF] - Do not hang when CFI are truncated. grimar on Jun 17 2020, 7:55 AM. Authored by
Details Currently when the .eh_frame section is truncated so that It happens because CFIProgram::parse does not handle errors properly.
Diff Detail Event Timeline
Comment Actions
Comment Actions LGTM, thanks.
|
clang-format may prefer /*SectionIndex=*/nullptr