mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 09:49:23 +02:00
GT-2696: idaxml.py negative memory reference fix (#213).
This commit is contained in:
parent
76cbc8a9ac
commit
2313b8c95c
1 changed files with 1 additions and 1 deletions
|
@ -1192,7 +1192,7 @@ class XmlExporter(IdaXml):
|
||||||
elif idc.is_code(f) == True:
|
elif idc.is_code(f) == True:
|
||||||
insn = ida_ua.insn_t()
|
insn = ida_ua.insn_t()
|
||||||
ida_ua.decode_insn(insn, addr)
|
ida_ua.decode_insn(insn, addr)
|
||||||
target = insn.ops[op].value - ri.tdelta + ri.base
|
target = (insn.ops[op].value - ri.tdelta + ri.base) & ((1 << 64) - 1)
|
||||||
elif idc.is_data(f) == True:
|
elif idc.is_data(f) == True:
|
||||||
target = self.get_data_value(addr) - ri.tdelta + ri.base;
|
target = self.get_data_value(addr) - ri.tdelta + ri.base;
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue