]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Interpret memory as an ULong value.
authorFlorian Krohm <florian@eich-krohm.de>
Sat, 17 Oct 2015 11:19:11 +0000 (11:19 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Sat, 17 Oct 2015 11:19:11 +0000 (11:19 +0000)
git-svn-id: svn://svn.valgrind.org/vex/trunk@3201

VEX/priv/ir_inject.c

index ee45a849bb9d2e1684d902567b77cb52c1c54a50..93b4c1c9bc933de53cea9d25475e9d5ec1bd6ac3 100644 (file)
@@ -213,7 +213,8 @@ vex_inject_ir(IRSB *irsb, IREndness endian)
       if (iricb.shift_amount_is_immediate) {
          // This implies that the IROp is a shift op
          vassert(iricb.t_opnd2 == Ity_I8);
-         opnd2 = mkU8(*((Char *)iricb.opnd2));
+         /* Interpret the memory as an ULong. */
+         opnd2 = mkU8(*((ULong *)iricb.opnd2));
       } else {
          opnd2 = load(endian, iricb.t_opnd2, iricb.opnd2);
       }