Skip to content

Commit

Permalink
Declare global variables for find_byte_sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
fariss committed Mar 1, 2024
1 parent 192755c commit e329947
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions capa/features/extractors/ida/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
IDA_BYTES_PATTERNS = ida_bytes.compiled_binpat_vec_t()
IDA_NALT_ENCODING = ida_nalt.get_default_encoding_idx(ida_nalt.BPU_1B) # use one byte-per-character encoding


def find_byte_sequence(start: int, end: int, seq: bytes) -> Iterator[int]:
"""yield all ea of a given byte sequence
Expand Down

0 comments on commit e329947

Please sign in to comment.