[llvm] [llvm-objdump][ELF]Fix crash when reading strings from .dynstr (PR #125679)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 19 22:10:32 PST 2025


================
@@ -63,14 +63,22 @@ static Expected<StringRef> getDynamicStrTab(const ELFFile<ELFT> &Elf) {
   if (!DynamicEntriesOrError)
     return DynamicEntriesOrError.takeError();
 
+  typename ELFT::Xword StringTableSize{0};
----------------
MaskRay wrote:

llvm style prefers `= 0` to `{0}`

https://github.com/llvm/llvm-project/pull/125679


More information about the llvm-commits mailing list