commit | f16c9bd4003c8e353814c677dc25ac50e4183be5 | [log] [tgz] |
---|---|---|
author | Nguyen Anh Quynh <aquynh@gmail.com> | Fri Jun 05 18:06:22 2015 +0800 |
committer | Nguyen Anh Quynh <aquynh@gmail.com> | Fri Jun 05 18:06:46 2015 +0800 |
tree | f2cb92ac7c9802ef26127ca7ce60dfbcaf2caa2a | |
parent | a210229a0faf81bf23bc1c2af2b382a48b0c644b [diff] |
xcore: turn off doing_mem after each printing each instruction. this fixes a memory corruption reported by @felixgr
diff --git a/arch/XCore/XCoreInstPrinter.c b/arch/XCore/XCoreInstPrinter.c index efcc51e..6416339 100644 --- a/arch/XCore/XCoreInstPrinter.c +++ b/arch/XCore/XCoreInstPrinter.c
@@ -257,6 +257,7 @@ void XCore_printInst(MCInst *MI, SStream *O, void *Info) { printInstruction(MI, O, Info); + set_mem_access(MI, false, 0); } #endif