[llvm] [llvm-objdump][ELF]Fix crash when reading strings from .dynstr(#86612) (PR #125679)
Ruoyu Qiu via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 10 03:18:32 PST 2025
================
@@ -235,6 +252,12 @@ template <class ELFT> void ELFDumper<ELFT>::printDynamicSection() {
Expected<StringRef> StrTabOrErr = getDynamicStrTab(Elf);
if (StrTabOrErr) {
const char *Data = StrTabOrErr->data();
+ if (Dyn.getVal() >= StringTableSize) {
----------------
cabbaken wrote:
Get it, I will check it later.
https://github.com/llvm/llvm-project/pull/125679
More information about the llvm-commits
mailing list