Do not access addresses that belong to the client executable.
It might not be there when we use VEX outside valgrind.
git-svn-id: svn://svn.valgrind.org/vex/trunk@2185 8f6e269a-dfd6-0310-a8e1-e2731360e62c
diff --git a/priv/guest_s390_toIR.c b/priv/guest_s390_toIR.c
index 13bbd44..165a98f 100644
--- a/priv/guest_s390_toIR.c
+++ b/priv/guest_s390_toIR.c
@@ -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;
}