JonathanSalwan/ROPgadget

Is there a bug?

soulway-weng opened this issue · 2 comments

sorry to disturb you.

when I use the software to find a gadget, I find the result found by the software does't match the file.

For instance:
image
(this is a part of the result)

In terms of the address (0x00023be8 : pop eax ; ret) found by the software,in IDA the address of 0x00023be8's content is:
image
you see, the instruction found by the sotfware doesn't match the instruction found by IDA.

But there is still some instruction match such as address (0x0001706f : pop ebp ; ret):
image

However, most part of the instructions found by the software don't match.

I don't know this is a code bug or it's my fault that I don't know how to use your software.

My environment is Ubuntu 17.04 in VMware Workstation 14.

I'm a student(new player) from a not English speak country,sorry to disturb you.

Hey,

Actually there is no bug. Your IDA view just aligns instructions based on the disassembly. On your IDA view, you show the instruction at the address 0x00023be6 not 0x00023be8. If you take the opcode at the address 0x00023be6+2 it will probably result into the pop eax ; ret instruction.

Oh,I understand. Thank you very much.