use ELF class member instead of vsGetField()

Co-authored-by: Willi Ballenthin <willi.ballenthin@gmail.com>
This commit is contained in:
Yacine Elhamer
2023-06-01 10:26:21 +01:00
committed by GitHub
parent ce8e15a220
commit 57386812f9

View File

@@ -132,7 +132,7 @@ def extract_insn_api_features(fh: FunctionHandle, bb, ih: InsnHandle) -> Iterato
SHT_SYMTAB = 0x2
for section in elf.sections:
if section.vsGetField("sh_info") & SHT_SYMTAB != 0:
if section.sh_info & SHT_SYMTAB:
strtab = elf.sections[section.vsGetField("sh_link")]
sh_symtab = Shdr.from_viv(section, elf.getSectionBytes(section.name))
sh_strtab = Shdr.from_viv(strtab, elf.getSectionBytes(strtab.name))