mirror of
https://github.com/mandiant/capa.git
synced 2026-07-07 12:57:32 -07:00
elf: use equality not bit masking
This commit is contained in:
@@ -718,7 +718,7 @@ class SymTab:
|
||||
|
||||
SHT_SYMTAB = 0x2
|
||||
for section in elf.sections:
|
||||
if section.sh_type & SHT_SYMTAB:
|
||||
if section.sh_type == SHT_SYMTAB:
|
||||
strtab_section = elf.sections[section.sh_link]
|
||||
sh_symtab = Shdr.from_viv(section, elf.readAtOffset(section.sh_offset, section.sh_size))
|
||||
sh_strtab = Shdr.from_viv(
|
||||
|
||||
Reference in New Issue
Block a user