mirror of
https://github.com/bitdefender/bddisasm.git
synced 2024-11-26 01:18:06 +00:00
Truncate the output of a relative addressing if 0x67 prefix is used.
This commit is contained in:
parent
752bc626c4
commit
cfb0f97897
@ -4790,7 +4790,14 @@ NdToText(
|
|||||||
|
|
||||||
if (pOp->Info.Memory.IsRipRel)
|
if (pOp->Info.Memory.IsRipRel)
|
||||||
{
|
{
|
||||||
status = NdSprintf(temp, sizeof(temp), "rel 0x%llx", disp + Rip + Instrux->Length);
|
uint64_t target = disp + Rip + Instrux->Length;
|
||||||
|
|
||||||
|
if (Instrux->AddrMode == ND_ADDR_32)
|
||||||
|
{
|
||||||
|
target &= 0xFFFFFFFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
status = NdSprintf(temp, sizeof(temp), "rel 0x%llx", target);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -7,6 +7,6 @@
|
|||||||
|
|
||||||
#define DISASM_VERSION_MAJOR 1
|
#define DISASM_VERSION_MAJOR 1
|
||||||
#define DISASM_VERSION_MINOR 26
|
#define DISASM_VERSION_MINOR 26
|
||||||
#define DISASM_VERSION_REVISION 0
|
#define DISASM_VERSION_REVISION 1
|
||||||
|
|
||||||
#endif // _DISASM_VER_H_
|
#endif // _DISASM_VER_H_
|
||||||
|
Loading…
Reference in New Issue
Block a user