Skip to content

Commit

Permalink
compatible with old angr
Browse files Browse the repository at this point in the history
  • Loading branch information
DennyDai committed Nov 11, 2024
1 parent 87d396f commit 74b8772
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/patcherex2/components/binary_analyzers/angr.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ def get_all_symbols(self) -> dict[str, int]:
continue
symbols[symbol.name] = self.normalize_addr(symbol.rebased_addr)
for func in self.p.kb.functions.values():
if func.is_simprocedure or func.is_alignment:
# make it compatible with old angr versions
if func.is_simprocedure or (getattr(func, "is_alignment", func.alignment)):
continue
symbols[func.name] = self.normalize_addr(func.addr)
return symbols
Expand Down

0 comments on commit 74b8772

Please sign in to comment.