diff options
author | Ruoyu Qiu <cabbaken@outlook.com> | 2025-03-10 10:39:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-09 19:39:58 -0700 |
commit | 82f2b661101d1133b72872141009035f01a42595 (patch) | |
tree | fa2b9f64f8687fd13d5c0b3f6792cf312ac8a896 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 42d49a77241df73a17cb442973702fc460e7fb90 (diff) | |
download | llvm-82f2b661101d1133b72872141009035f01a42595.zip llvm-82f2b661101d1133b72872141009035f01a42595.tar.gz llvm-82f2b661101d1133b72872141009035f01a42595.tar.bz2 |
[llvm-objdump][ELF]Fix crash when reading strings from .dynstr (#125679)
This change introduces a check for the strtab offset to prevent
llvm-objdump from crashing when processing malformed ELF files.
It provide a minimal reproduce test for
https://github.com/llvm/llvm-project/issues/86612#issuecomment-2035694455.
Additionally, it modifies how llvm-objdump handles and outputs malformed
ELF files with invalid string offsets.(More info:
https://discourse.llvm.org/t/should-llvm-objdump-objdump-display-actual-corrupted-values-in-malformed-elf-files/84391)
Fixes: #86612
Co-authored-by: James Henderson <James.Henderson@sony.com>
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions