init variable :/

This commit is contained in:
Moritz Raabe
2021-09-10 21:29:28 +02:00
parent 06d238a9f9
commit 80bb0b4aff

View File

@@ -942,6 +942,7 @@ def main(argv=None):
logger.error("%s", str(e))
return -1
file_extractor = None
if args.format == "pe" or (args.format == "auto" and taste.startswith(b"MZ")):
# these pefile and elffile file feature extractors are pretty light weight: they don't do any code analysis.
# so we can fairly quickly determine if the given file has "pure" file-scope rules