1
0
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:
Andrei Vlad LUTAS 2020-07-23 15:31:05 +03:00
parent 752bc626c4
commit cfb0f97897
2 changed files with 9 additions and 2 deletions

View File

@ -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
{ {

View File

@ -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_