[PATCH] D83049: [DebugInfo] Do not hang when parsing a malformed .debug_pub* section.

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 6 18:24:37 PDT 2020


dblaikie added inline comments.


================
Comment at: llvm/test/tools/llvm-dwarfdump/X86/debug_pub_tables_invalid.s:2-7
+# RUN: not llvm-dwarfdump -debug-pubnames %t 2>&1 | FileCheck %s
+# RUN: not llvm-dwarfdump -debug-pubtypes %t 2>&1 | FileCheck %s
+# RUN: not llvm-dwarfdump -debug-gnu-pubnames %t 2>&1 | FileCheck %s
+# RUN: not llvm-dwarfdump -debug-gnu-pubtypes %t 2>&1 | FileCheck %s
+
+# CHECK: error: unexpected end of data at offset 0x1 while reading [0x0, 0x4)
----------------
Might be nice if you could test all these in one go? (so it's one invocation of llvm-dwarfdump rather than 4 - save on process overhead, etc)


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D83049/new/

https://reviews.llvm.org/D83049





More information about the llvm-commits mailing list