[all-commits] [llvm/llvm-project] c68ee6: [llvm-readelf] - --elf-hash-histogram: do not cras...
Georgii Rymar via All-commits
all-commits at lists.llvm.org
Fri May 29 03:31:05 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: c68ee6da283c5697e935d1f9b7401c086cb18e03
https://github.com/llvm/llvm-project/commit/c68ee6da283c5697e935d1f9b7401c086cb18e03
Author: Georgii Rymar <grimar at accesssoftek.com>
Date: 2020-05-29 (Fri, 29 May 2020)
Changed paths:
M llvm/test/tools/llvm-readobj/ELF/gnuhash.test
M llvm/test/tools/llvm-readobj/ELF/hash-histogram.test
M llvm/tools/llvm-readobj/ELFDumper.cpp
Log Message:
-----------
[llvm-readelf] - --elf-hash-histogram: do not crash when the .gnu.hash goes past the EOF.
llvm-readelf might crash when the .gnu.hash table goes past the EOF.
This patch splits and updates the code of a helper function `checkGNUHashTable`,
which is similar to `checkHashTable` and fixes the issue.
Differential revision: https://reviews.llvm.org/D80215
More information about the All-commits
mailing list