mirror of
https://github.com/NationalSecurityAgency/ghidra
synced 2024-07-05 01:08:38 +00:00
GT-2696: idaxml.py negative memory reference fix (#213).
This commit is contained in:
parent
76cbc8a9ac
commit
2313b8c95c
|
@ -1192,7 +1192,7 @@ class XmlExporter(IdaXml):
|
|||
elif idc.is_code(f) == True:
|
||||
insn = ida_ua.insn_t()
|
||||
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:
|
||||
target = self.get_data_value(addr) - ri.tdelta + ri.base;
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user