diff options
author | Georgii Rymar <grimar@accesssoftek.com> | 2020-09-01 11:11:34 +0300 |
---|---|---|
committer | Georgii Rymar <grimar@accesssoftek.com> | 2020-09-15 17:44:16 +0300 |
commit | 7df873f9c67099a209f0122a1f5411e701a9d425 (patch) | |
tree | 2f3eca65867288984c25210db812dcfc007098b1 /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | a012bc4c42e4408a18e4c4d67306b79c576df961 (diff) | |
download | llvm-7df873f9c67099a209f0122a1f5411e701a9d425.zip llvm-7df873f9c67099a209f0122a1f5411e701a9d425.tar.gz llvm-7df873f9c67099a209f0122a1f5411e701a9d425.tar.bz2 |
[llvm-readobj/elf] - Don't crash when the size of s dynamic symbol table, inferred from the hash table, is broken.
Currently we might derive the dynamic symbol table size from the DT_HASH hash table (using its `nchain` field).
It is possible to crash dumpers with a broken relocation that refers to a symbol with an index
that is too large. To trigger it, the inferred size of the dynamic symbol table should go past the end of the object.
This patch adds a size validation + warning.
Differential revision: https://reviews.llvm.org/D86923
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions