|
From: <sv...@va...> - 2011-07-27 20:45:10
|
Author: florian
Date: 2011-07-27 21:40:22 +0100 (Wed, 27 Jul 2011)
New Revision: 2185
Log:
Do not access addresses that belong to the client executable.
It might not be there when we use VEX outside valgrind.
Modified:
trunk/priv/guest_s390_toIR.c
Modified: trunk/priv/guest_s390_toIR.c
===================================================================
--- trunk/priv/guest_s390_toIR.c 2011-07-24 14:13:21 UTC (rev 2184)
+++ trunk/priv/guest_s390_toIR.c 2011-07-27 20:40:22 UTC (rev 2185)
@@ -12966,8 +12966,8 @@
break;
}
}
- /* next instruction is execute, stop here */
- if (irsb->next == NULL && (*(char *)(HWord) guest_IA_next_instr == 0x44)) {
+ /* If next instruction is execute, stop here */
+ if (irsb->next == NULL && bytes[insn_length] == 0x44) {
irsb->next = IRExpr_Const(IRConst_U64(guest_IA_next_instr));
dis_res->whatNext = Dis_StopHere;
}
|