aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2019-08-07 09:29:42 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2019-08-07 09:29:42 +0000
commita74aa23065cc456673f2910b3d7d65e5db6da718 (patch)
tree52741f95952c45541c44e415f2303bd0dd9eb1f3 /llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
parentc310992186bd3be12fe6f93522f8124d2a413cf8 (diff)
downloadllvm-a74aa23065cc456673f2910b3d7d65e5db6da718.zip
llvm-a74aa23065cc456673f2910b3d7d65e5db6da718.tar.gz
llvm-a74aa23065cc456673f2910b3d7d65e5db6da718.tar.bz2
[ELF.h] - Check the case when e_shstrndx=SHN_XINDEX, but the corresponding sh_link is broken.
When e_shstrndx is equal to SHN_XINDEX, the index of the section string table section should be taken from the sh_link field of the section header at index 0. If sh_link is broken, e.g. contains an index that is larger than number of sections, then error is reported. This error message was untested before. Differential revision: https://reviews.llvm.org/D65391 llvm-svn: 368139
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp')
0 files changed, 0 insertions, 0 deletions