_parse(): fix section header unpacking field size

This commit is contained in:
Yacine Elhamer
2023-04-22 01:09:04 +01:00
parent 88c78bb411
commit 69d44cdc16

View File

@@ -658,7 +658,7 @@ class SymTab:
)
elif bitness == 64:
name_offset, info, other, shndx, value, size = struct.unpack_from(
endian + "IBBBQQ", symtab_buf, i * self.symtab.entsize
endian + "IBBhQQ", symtab_buf, i * self.symtab.entsize
)
self.symbols.append(Symbol(name_offset, value, size, info, other, shndx))