[all-commits] [llvm/llvm-project] 19ddba: [llvm-readobj] - Improve dumping of the SHT_LLVM_L...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Wed Nov 20 01:12:10 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 19ddba95513af4e673ce6724e3a87077c278354c
      https://github.com/llvm/llvm-project/commit/19ddba95513af4e673ce6724e3a87077c278354c
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2019-11-20 (Wed, 20 Nov 2019)

  Changed paths:
    M llvm/test/tools/llvm-readobj/elf-linker-options.test
    M llvm/tools/llvm-readobj/ELFDumper.cpp

  Log Message:
  -----------
  [llvm-readobj] - Improve dumping of the SHT_LLVM_LINKER_OPTIONS sections.

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.

Differential revision: https://reviews.llvm.org/D70112




More information about the All-commits mailing list