Merge pull request #2732 from xusheng6/test_fix_binja_crash

binja: fix crash in binja feature extraction when MLIL is unavailable…
This commit is contained in:
Moritz
2025-10-24 12:29:51 +02:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@@ -32,6 +32,8 @@
### Bug Fixes
- binja: fix a crash during feature extraction when the MLIL is unavailable @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:
mlil = func.mlil
if mlil is None:
return
for block in mlil.basic_blocks: