[PATCH] D87261: [obj2yaml] Stop parsing the debug_str section when it encounters a string without the null terminator.

Xing GUO via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 7 18:29:35 PDT 2020


Higuoxing created this revision.
Higuoxing added reviewers: grimar, jhenderson, MaskRay.
Herald added subscribers: llvm-commits, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.
Higuoxing requested review of this revision.

When obj2yaml encounters a string without the null terminator, it should
stop parsing the debug_str section. This patch addresses comments in
D86867 <https://reviews.llvm.org/D86867#inline-803291>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D87261

Files:
  llvm/test/ObjectYAML/MachO/DWARF-debug_str.yaml
  llvm/test/tools/obj2yaml/ELF/DWARF/debug-str.yaml
  llvm/tools/obj2yaml/dwarf2yaml.cpp
  llvm/tools/obj2yaml/elf2yaml.cpp
  llvm/tools/obj2yaml/macho2yaml.cpp
  llvm/tools/obj2yaml/obj2yaml.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87261.290386.patch
Type: text/x-patch
Size: 6255 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200908/ca11ec36/attachment.bin>


More information about the llvm-commits mailing list