Skip to content

Commit

Permalink
lint ghidra insn
Browse files Browse the repository at this point in the history
  • Loading branch information
colton-gabertan committed Jan 19, 2025
1 parent c718f35 commit bb1244b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions capa/features/extractors/ghidra/insn.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,8 +430,8 @@ def check_nzxor_security_cookie_delta(
func_asv = fh.getBody()
first_addr = func_asv.getMinAddress()
last_addr = func_asv.getMaxAddress()
first_bb = model.getFirstCodeBlockContaining(first_addr, monitor()) # type: ignore [name-defined] # noqa: F821
last_bb = model.getFirstCodeBlockContaining(last_addr, monitor()) # type: ignore [name-defined] # noqa: F821
first_bb = model.getFirstCodeBlockContaining(first_addr, monitor()) # type: ignore [name-defined] # noqa: F821
last_bb = model.getFirstCodeBlockContaining(last_addr, monitor()) # type: ignore [name-defined] # noqa: F821

if insn_addr < first_addr.add(SECURITY_COOKIE_BYTES_DELTA) and first_bb.contains(insn_addr):
return True
Expand Down

0 comments on commit bb1244b

Please sign in to comment.