|
From: <sv...@va...> - 2015-10-17 11:19:18
|
Author: florian
Date: Sat Oct 17 12:19:11 2015
New Revision: 3201
Log:
Interpret memory as an ULong value.
Modified:
trunk/priv/ir_inject.c
Modified: trunk/priv/ir_inject.c
==============================================================================
--- trunk/priv/ir_inject.c (original)
+++ trunk/priv/ir_inject.c Sat Oct 17 12:19:11 2015
@@ -213,7 +213,8 @@
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);
}
|