Reverted r283740 [Object/ELF] - Do not crash on invalid Header->e_shoff value.
authorGeorge Rimar <grimar@accesssoftek.com>
Tue, 11 Oct 2016 08:12:27 +0000 (08:12 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Tue, 11 Oct 2016 08:12:27 +0000 (08:12 +0000)
commit5fecfaadc912ee0388cb9e8683b637399eca7c8a
tree3bb50f06b5498bc67b7b88a02da4e77082b9b4db
parent0c42dc4784c77adf363995fe3962cbd2da2ac4d0
Reverted r283740 [Object/ELF] - Do not crash on invalid Header->e_shoff value.

Bot does not like it: http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fast/builds/17075

/mnt/b/sanitizer-buildbot3/sanitizer-x86_64-linux-fast/build/llvm/test/Object/invalid.test:70:32: error: expected string not found in input
INVALID-SEC-ADDRESS-ALIGNMENT: Invalid address alignment of section headers
                               ^
<stdin>:1:1: note: scanning from here
/mnt/b/sanitizer-buildbot3/sanitizer-x86_64-linux-fast/build/llvm/include/llvm/Object/ELF.h:412:7: runtime error: upcast of misaligned address 0x000002d8b899 for type 'llvm::object::Elf_Shdr_Impl<llvm::object::ELFType<llvm::support::endianness::little, true> >', which requires 2 byte alignment
^
<stdin>:1:125: note: possible intended match here
/mnt/b/sanitizer-buildbot3/sanitizer-x86_64-linux-fast/build/llvm/include/llvm/Object/ELF.h:412:7: runtime error: upcast of misaligned address 0x000002d8b899 for type 'llvm::object::Elf_Shdr_Impl<llvm::object::ELFType<llvm::support::endianness::little, true> >', which requires 2 byte alignment

llvm-svn: 283858
llvm/include/llvm/Object/ELF.h
llvm/test/Object/Inputs/invalid-sections-address-alignment.x86-64 [deleted file]
llvm/test/Object/invalid.test