keypatch
keypatch copied to clipboard
64-bit fixup is losing high bits of address
Steps to reproduce:
- Open a 64-bit application in IDA 7.0, for example, firefox.exe.
- At the beginning of 'main()' function try to patch 'jmp main'. The dialog would show:
Assembly: jmp main
- Fixup: jmp 0x40001090
- Encode: ...
if you replace it with jmp 0x140001090, then it works.
Can you fix this with a pull req?
I don't really know how to fix it.
All I know is that when address goes to ida_resolve(), it is a correct 64-bit address. Then it goes to
(t, v) = idaapi.get_name_value(address, sym)
and v is only 32-bits LSB of address.
Please see commit b8b0f79.