Skip to content

Commit

Permalink
Merge pull request #130 from alexander-pick/master
Browse files Browse the repository at this point in the history
Update idb2pat.py
  • Loading branch information
williballenthin authored Oct 29, 2024
2 parents 238dc52 + 1e080d6 commit fc667de
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/flare/idb2pat.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,16 @@ def make_func_sig(config, func):
if name is None or name == "":
continue

addr = 0
ref_format = ""

if ref_loc >= func.start_ea:
# this will be either " ^%04d %s" or " ^%08d %s"
addr = ref_loc - func.start_ea
ref_format = " ^%%0%dX %%s" % (config.pointer_size)
else:
# this will be either " ^-%04d %s" or " ^-%08d %s"
addrs = func.start_ea - ref_loc
addr = func.start_ea - ref_loc
ref_format = " ^-%%0%dX %%s" % (config.pointer_size)
sig += ref_format % (addr, name)

Expand Down

0 comments on commit fc667de

Please sign in to comment.