DynamoRIO / DynamoRIO/dynamorio

a bug in opnd_create_abs_addr()

Open
#2,712 0 comments 0 reactions 0 assignees View on GitHub
OpSys-x64 OpSys-x86
Dominant language
C
Stars
3.2k
Forks
629
Avg merge
2d 18h
Merged PRs (30d)
30

Description

I use opnd_create_abs_addr() with opnd DR_REG_XAX like following code:
`opnd2 = opnd_create_abs_addr((void*)0x80000000, OPSZ_8);
opnd1 = opnd_create_reg(DR_REG_RAX);
new_instr = INSTR_CREATE_mov_st(drcontext, opnd2, opnd1);`
but I find the opcode is :
`00000000800B14AD | 48 A3 00 00 00 80 FF FF FF FF | mov qword ptr ds:[0xFFFFFFFF80000000],rax |`
The opnd_create_abs_addr's address arg maybe has a wrong transformation to a signed int.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.