The integrity checks for index entries in DWARFUnitHeader::extract() might cause the function to return before checking the state of an Error object, which leads to a crash in runtime. The patch fixes the issue by moving the checks in a safe place.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM. Just wondering, did you consider writing a unittest instead?
llvm/test/DebugInfo/X86/invalid-cu-length-dwp.s | ||
---|---|---|
55 | Nit: ## |
Comment Actions
Well, as there is no support for these sections in DWARFYAML I suppose the test would not be that expressive as the lit one. Do you want me to try anyway?
Nit: ##