[PATCH] D70112: [llvm-readobj] - Improve dumping of the SHT_LLVM_LINKER_OPTIONS sections.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 12 01:56:26 PST 2019


grimar created this revision.
grimar added reviewers: jhenderson, MaskRay, compnerd.
Herald added subscribers: seiya, rupprecht.
Herald added a project: LLVM.

I've added a few tests that shows how the current code could overrun the section data
buffer while dumping. I had to rewrite the code to fix this.
Main problem was that the current code assumed that the section data is correct.
But when it is not - it failed.


https://reviews.llvm.org/D70112

Files:
  llvm/test/tools/llvm-readobj/elf-linker-options.test
  llvm/tools/llvm-readobj/ELFDumper.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70112.228830.patch
Type: text/x-patch
Size: 3761 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191112/06c7e321/attachment.bin>


More information about the llvm-commits mailing list