Skip to content

Commit

Permalink
Merge pull request libdebug#158 from libdebug/endbr32
Browse files Browse the repository at this point in the history
fix: endbr32 was missing
  • Loading branch information
Frank01001 authored Oct 14, 2024
2 parents 9f63fb5 + fa8ed0b commit b12556c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libdebug/architectures/i386/i386_stack_unwinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ def _preamble_state(self: I386StackUnwinder, instruction_window: bytes) -> int:
"""
preamble_state = 0

# push ebp
if b"\x55" in instruction_window:
# endbr32 and push ebp
if b"\xf3\x0f\x1e\xfb" in instruction_window or b"\x55" in instruction_window:
preamble_state = 1

# mov ebp, esp
Expand Down

0 comments on commit b12556c

Please sign in to comment.