diff options
author | Georgii Rymar <grimar@accesssoftek.com> | 2020-05-13 15:06:01 +0300 |
---|---|---|
committer | Georgii Rymar <grimar@accesssoftek.com> | 2020-05-15 11:33:23 +0300 |
commit | 56970ec6a0bed5ba4312872eed13137ca43f67fb (patch) | |
tree | ef96ff16170f312e725f5ea60f9a37b1482074ed /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 7ccae2cece72153d2c8210ef916bf0052da216ad (diff) | |
download | llvm-56970ec6a0bed5ba4312872eed13137ca43f67fb.zip llvm-56970ec6a0bed5ba4312872eed13137ca43f67fb.tar.gz llvm-56970ec6a0bed5ba4312872eed13137ca43f67fb.tar.bz2 |
[llvm-readobj] - --gnu-hash-table: do not crash when the GNU hash table goes past the EOF.
We might have a scenario where a the `GbuHashTable` variable correctly points
to a place inside the file (we validate this fact early in `parseDynamicTable`),
but nbuckets/maskwords fields are broken in the way the code tries
to read the data past the EOF. This patch fixes the issue.
Differential revision: https://reviews.llvm.org/D79853
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions