[all-commits] [llvm/llvm-project] 2584e1: [llvm-readobj] - Don't crash when relocation table...
Georgii Rymar via All-commits
all-commits at lists.llvm.org
Sun Nov 22 23:44:49 PST 2020
Branch: refs/heads/temp-test-main
Home: https://github.com/llvm/llvm-project
Commit: 2584e1e324c97eeeacc1e421e5f3191a708c3d2d
https://github.com/llvm/llvm-project/commit/2584e1e324c97eeeacc1e421e5f3191a708c3d2d
Author: Georgii Rymar <grimar at accesssoftek.com>
Date: 2020-11-23 (Mon, 23 Nov 2020)
Changed paths:
M llvm/test/tools/llvm-readobj/ELF/broken-dynamic-reloc.test
M llvm/tools/llvm-readobj/ELFDumper.cpp
Log Message:
-----------
[llvm-readobj] - Don't crash when relocation table goes past the EOF.
It is possible to trigger reading past the EOF by breaking fields like
DT_PLTRELSZ, DT_RELSZ or DT_RELASZ
This patch adds a validation in `DynRegionInfo` helper class.
Differential revision: https://reviews.llvm.org/D91787
More information about the All-commits
mailing list