Skip to content

Commit

Permalink
Merge pull request #1442 from Vector35/fix_bn_error
Browse files Browse the repository at this point in the history
Check if caller.llil is None before accessing its properties
  • Loading branch information
williballenthin authored Apr 12, 2023
2 parents e9e06bb + dd207fb commit 6ba5b2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@

### Bug Fixes

- extractor: avoid Binary Ninja exception when analyzing certain files #1441 @xusheng6


### capa explorer IDA Pro plugin

### Development
Expand Down
2 changes: 1 addition & 1 deletion capa/features/extractors/binja/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def extract_function_calls_to(fh: FunctionHandle):
# Everything that is a code reference to the current function is considered a caller, which actually includes
# many other references that are NOT a caller. For example, an instruction `push function_start` will also be
# considered a caller to the function
if caller.llil.operation in [
if caller.llil is not None and caller.llil.operation in [
LowLevelILOperation.LLIL_CALL,
LowLevelILOperation.LLIL_CALL_STACK_ADJUST,
LowLevelILOperation.LLIL_JUMP,
Expand Down

0 comments on commit 6ba5b2b

Please sign in to comment.