mirror of
https://github.com/mandiant/capa.git
synced 2025-12-12 23:59:48 -08:00
Update capa/features/extractors/elffile.py
This commit is contained in:
@@ -102,8 +102,7 @@ class ElfFeatureExtractor(FeatureExtractor):
|
||||
super(ElfFeatureExtractor, self).__init__()
|
||||
self.path = path
|
||||
with open(self.path, "rb") as f:
|
||||
with contextlib.closing(io.BytesIO(f.read())):
|
||||
self.elf = ELFFile()
|
||||
self.elf = ELFFile(io.BytesIO(f.read()))
|
||||
|
||||
def get_base_address(self):
|
||||
# virtual address of the first segment with type LOAD
|
||||
|
||||
Reference in New Issue
Block a user