[PATCH] D43470: [DWARF] Prevent crash when .debug_line line_range is zero
Adrian Prantl via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 19 08:33:10 PST 2018
aprantl accepted this revision.
aprantl added inline comments.
This revision is now accepted and ready to land.
================
Comment at: lib/DebugInfo/DWARF/DWARFDebugLine.cpp:309
+
+ if (LineRange == 0) {
+ fprintf(stderr, "warning: parsing line table prologue at 0x%8.8" PRIx64
----------------
aprantl wrote:
> Can you also make it so that llvm-dwarfdump --verify reports this as an error?
Nevermind. That's what you did!
Repository:
rL LLVM
https://reviews.llvm.org/D43470
More information about the llvm-commits
mailing list