Skip to content
Snippets Groups Projects
Commit 7a2e441d authored by Jason Hiser's avatar Jason Hiser :tractor:
Browse files

Fix bug in getString for memory operands on x86 to always use hex displacements

parent 1e0f9b57
No related branches found
No related tags found
No related merge requests found
Pipeline #11428 passed
......@@ -7,6 +7,7 @@
#include <operand_base.hpp>
#include <operand_csx86.hpp>
#include <capstone.h>
#include <irdb-util>
......@@ -256,7 +257,7 @@ string DecodedOperandCapstoneX86_t::getString() const
ret_val+=string(" * ") + to_string(op.mem.scale);
if (op.mem.disp != 0)
ret_val+=" + "+ to_string(op.mem.disp);
ret_val+=" + 0x"+ IRDB_SDK::to_hex_string(op.mem.disp);
if(ret_val=="")
return "0";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment