You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running into a weird issue with capstone where the following instruction:
66 0F 6F 05 DC A7 01 00
is presented as movdqa xmm0, xmmword ptr [rip + 0x1a7dc], however the disp_size value is 2 and disp_offset is 4. These two things do not agree with each other, because if the disp_size was 2 then the displacement bytes would be DC A7, which, when sign-extended would give a value of -22564 which should be added to the current value of rip. However, the string disassembly clearly shows the displacement as 0x1a7dc. After verifying against objdump and GDB, I can see that 0x1a7dc is the correct displacement value. This means that the disp_size should be coming back as 4, not 2.
I'm running into a weird issue with capstone where the following instruction:
66 0F 6F 05 DC A7 01 00
is presented as
movdqa xmm0, xmmword ptr [rip + 0x1a7dc]
, however thedisp_size
value is 2 anddisp_offset
is 4. These two things do not agree with each other, because if thedisp_size
was 2 then the displacement bytes would beDC A7
, which, when sign-extended would give a value of -22564 which should be added to the current value ofrip
. However, the string disassembly clearly shows the displacement as 0x1a7dc. After verifying against objdump and GDB, I can see that 0x1a7dc is the correct displacement value. This means that the disp_size should be coming back as 4, not 2.Unless I'm missing something?
Tested with Capstone 5.0.5
Work environment
git clone
Instruction bytes giving faulty results
Expected results
It should be:
Steps to get the wrong result
With
Python
The text was updated successfully, but these errors were encountered: