[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:09 PST 2018


aprantl added inline comments.


================
Comment at: lib/DebugInfo/DWARF/DWARFDebugLine.cpp:309
+
+  if (LineRange == 0) {
+    fprintf(stderr, "warning: parsing line table prologue at 0x%8.8" PRIx64
----------------
Can you also make it so that llvm-dwarfdump --verify reports this as an error?


Repository:
  rL LLVM

https://reviews.llvm.org/D43470





More information about the llvm-commits mailing list