From: Florian Krohm Date: Sat, 17 Oct 2015 11:19:11 +0000 (+0000) Subject: Interpret memory as an ULong value. X-Git-Tag: svn/VALGRIND_3_12_0^2~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f630495839caf0c012155fe83dea8cadf9a5f7e0;p=thirdparty%2Fvalgrind.git Interpret memory as an ULong value. git-svn-id: svn://svn.valgrind.org/vex/trunk@3201 --- diff --git a/VEX/priv/ir_inject.c b/VEX/priv/ir_inject.c index ee45a849bb..93b4c1c9bc 100644 --- a/VEX/priv/ir_inject.c +++ b/VEX/priv/ir_inject.c @@ -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); }