[all-commits] [llvm/llvm-project] d7ecc0: [Object/ELF] - Refine the error reported when sect...
Georgii Rymar via All-commits
all-commits at lists.llvm.org
Tue Dec 3 06:56:24 PST 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: d7ecc0256ebda38e4c746a1ed0faeb3005410d93
https://github.com/llvm/llvm-project/commit/d7ecc0256ebda38e4c746a1ed0faeb3005410d93
Author: Georgii Rymar <grimar at accesssoftek.com>
Date: 2019-12-03 (Tue, 03 Dec 2019)
Changed paths:
M llvm/include/llvm/Object/ELF.h
M llvm/test/Object/invalid.test
M llvm/test/tools/llvm-readobj/elf-verdef-invalid.test
M llvm/test/tools/llvm-readobj/elf-verneed-invalid.test
Log Message:
-----------
[Object/ELF] - Refine the error reported when section's offset + size overruns the file buffer.
This is a follow-up requested in comments for D70826.
It changes the message from
"section X has a sh_offset (Y) + sh_size (Z) that cannot be represented"
to
"section X has a sh_offset (Y) + sh_size (Z) that is greater than the file size (0xABC)"
when section's sh_offset + sh_size overruns a file buffer.
Differential revision: https://reviews.llvm.org/D70893
More information about the All-commits
mailing list