[macho2yaml] String table can contain null strings
authorChris Bieneman <beanz@apple.com>
Thu, 4 Aug 2016 19:19:25 +0000 (19:19 +0000)
committerChris Bieneman <beanz@apple.com>
Thu, 4 Aug 2016 19:19:25 +0000 (19:19 +0000)
commit9f749c8e03f8e2d21379ea08e304d54025087fca
treee8834c2b4ecfc185bb0cceb96159066a9170bbbd
parentb3de75d3a045c9005e9a6bb79a48d81bcf0e6c6a
[macho2yaml] String table can contain null strings

Since the string table being read from the MachO is a properly bounded StringRef including null strings is safe and reasonable.

This occurs frequently with stripped binaries where the string table has been modified.

llvm-svn: 277753
llvm/test/ObjectYAML/MachO/null_string_entries.yaml [new file with mode: 0644]
llvm/tools/obj2yaml/macho2yaml.cpp