[all-commits] [llvm/llvm-project] 31fe8c: [llvm-readelf] - Don't crash when e_shstrndx==SHN_...
Georgii Rymar via All-commits
all-commits at lists.llvm.org
Wed Jun 24 04:10:37 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 31fe8c2763a8982e16646f85ac09f2362341306c
https://github.com/llvm/llvm-project/commit/31fe8c2763a8982e16646f85ac09f2362341306c
Author: Georgii Rymar <grimar at accesssoftek.com>
Date: 2020-06-24 (Wed, 24 Jun 2020)
Changed paths:
M llvm/include/llvm/Object/ELF.h
M llvm/test/tools/llvm-readobj/ELF/many-sections.s
Log Message:
-----------
[llvm-readelf] - Don't crash when e_shstrndx==SHN_XINDEX, but there is no section header.
Currently we crash when trying to print --sections and the SHN_XINDEX escape value
is used for the e_shstrndx field, but there is no section header at index 0 to
read the value from.
Differential revision: https://reviews.llvm.org/D82374
More information about the All-commits
mailing list