8000 Merge pull request #2732 from xusheng6/test_fix_binja_crash · mandiant/capa@82cbfd3 · GitHub
[go: up one dir, main page]

Skip to content
/ capa Public

Commit 82cbfd3

Browse files
authored
Merge pull request #2732 from xusheng6/test_fix_binja_crash
binja: fix crash in binja feature extraction when MLIL is unavailable…
2 parents 08319f5 + acb34e8 commit 82cbfd3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232

3333
### Bug Fixes
3434

35+
- binja: fix a crash during feature extraction when the MLIL is unavailable @xusheng6 #2714
36+
3537
### capa Explorer Web
3638

3739
### capa Explorer IDA Pro plugin

capa/features/extractors/binja/function.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
Function,
2020
BinaryView,
2121
SymbolType,
22-
ILException,
2322
RegisterValueType,
2423
VariableSourceType,
2524
LowLevelILOperation,
@@ -192,9 +191,8 @@ def extract_stackstring(fh: FunctionHandle):
192191
if bv is None:
193192
return
194193

195-
try:
196-
mlil = func.mlil
197-
except ILException:
194+
mlil = func.mlil
195+
if mlil is None:
198196
return
199197

200198
for block in mlil.basic_blocks:

0 commit comments

Comments
 (0)
0