binja: fix crash in binja feature extraction when MLIL is unavailable. Fix https://github.com/mandiant/capa/issues/2714

This commit is contained in:
Xusheng
2025-10-20 18:40:45 +08:00
parent 789747282d
commit 0099e75704
2 changed files with 4 additions and 4 deletions

View File

@@ -31,6 +31,8 @@
### Bug Fixes
- binja: fix a crash during feature extraction when the MLIL is unavaiable @xusheng6 #2714
### capa Explorer Web
### capa Explorer IDA Pro plugin

View File

@@ -19,7 +19,6 @@ from binaryninja import (
Function,
BinaryView,
SymbolType,
ILException,
RegisterValueType,
VariableSourceType,
LowLevelILOperation,
@@ -192,9 +191,8 @@ def extract_stackstring(fh: FunctionHandle):
if bv is None:
return
try:
mlil = func.mlil
except ILException:
if mlil is None:
return
for block in mlil.basic_blocks: