[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 02:59:40 PST 2025
================
@@ -470,3 +473,34 @@ Sections:
Value: 0x1
- Tag: DT_NULL
Value: 0x0
+
+--- !ELF
+FileHeader:
+ Class: ELFCLASS64
+ Data: ELFDATA2LSB
+ Type: ET_EXEC
+ Machine: EM_X86_64
+Sections:
+ - Name: .dynstr
+ Type: SHT_STRTAB
+ Address: 0x1000
+ Size: 0x10
+ Content: "004400550066007700"
+ - Name: .dynamic
+ Type: SHT_DYNAMIC
+ Entries:
+ - Tag: DT_NEEDED
+ Value: 0x1245657656
----------------
cabbaken wrote:
Oh, I know what you mean. I will fix it in the next commit.
https://github.com/llvm/llvm-project/pull/125679
More information about the llvm-commits
mailing list