mirror of
https://github.com/mandiant/capa.git
synced 2026-02-04 11:07:53 -08:00
bugfix: potential reference to uninitialized variables
This commit is contained in:
@@ -776,6 +776,7 @@ def guess_os_from_needed_dependencies(elf) -> Optional[OS]:
|
||||
def guess_os_from_symtab(elf) -> Optional[OS]:
|
||||
SHT_SYMTAB = 0x2
|
||||
SHT_STRTAB = 0x3
|
||||
strtab_buf = symtab_buf = None
|
||||
|
||||
for shdr in elf.section_headers:
|
||||
if shdr.type == SHT_STRTAB:
|
||||
|
||||
Reference in New Issue
Block a user