From 74284e9dadee85e4f6133292fffd1899f1cb2ba9 Mon Sep 17 00:00:00 2001 From: Yacine Elhamer Date: Sun, 2 Apr 2023 21:56:28 +0100 Subject: [PATCH] bugfix: potential reference to uninitialized variables --- capa/features/extractors/elf.py | 1 + 1 file changed, 1 insertion(+) diff --git a/capa/features/extractors/elf.py b/capa/features/extractors/elf.py index 2f153dbc..ba41519c 100644 --- a/capa/features/extractors/elf.py +++ b/capa/features/extractors/elf.py @@ -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: