HomePhabricator

[DebugInfo/DWARF] - Do not hang when CFI are truncated.

Authored by grimar on Jun 17 2020, 7:42 AM.

Description

[DebugInfo/DWARF] - Do not hang when CFI are truncated.

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 revision: https://reviews.llvm.org/D82017

Details

Committed
grimarJun 23 2020, 4:39 AM
Differential Revision
D82017: [DebugInfo/DWARF] - Do not hang when CFI are truncated.
Parents
rG01fee8dce549: [DebugInfo][test] Attempt to fix big endian build bots
Branches
Unknown
Tags
Unknown