mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-23 23:16:32 +08:00
GT-2696: idaxml.py negative memory reference fix (#213).
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user