mirror of
https://github.com/mandiant/capa.git
synced 2025-12-05 20:40:05 -08:00
Fix Binary Ninja MLIL None handling in extract_stackstring
Co-authored-by: williballenthin <156560+williballenthin@users.noreply.github.com>
This commit is contained in:
@@ -197,6 +197,9 @@ def extract_stackstring(fh: FunctionHandle):
|
||||
except ILException:
|
||||
return
|
||||
|
||||
if mlil is None:
|
||||
return
|
||||
|
||||
for block in mlil.basic_blocks:
|
||||
if bb_contains_stackstring(func, block):
|
||||
yield Characteristic("stack string"), block.source_block.start
|
||||
|
||||
Reference in New Issue
Block a user