]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
ppc64: Arguments to iselInt128Expr_to_32x4 should be initialized.
authorMark Wielaard <mark@klomp.org>
Mon, 27 May 2019 18:31:35 +0000 (20:31 +0200)
committerMark Wielaard <mark@klomp.org>
Tue, 28 May 2019 16:12:57 +0000 (18:12 +0200)
Make sure to initialize the arguments to iselInt128Expr_to_32x4.
iselInt128Expr_to_32x4 will check that iselInt128Expr_to_32x4_wrk
has assigned the correct type of values to the arguments. But if
the arguments were never initialized it might not be able to when
iselInt128Expr_to_32x4_wrk was unable to assign a value.

Reviewed-by: Carl Love <cel@us.ibm.com>
VEX/priv/host_ppc_isel.c

index 68cb5031ac986d75aa07c0f7b07fe1223ede9020..e05145c043b45fc7372da423d94f850f82b7c987 100644 (file)
@@ -6537,7 +6537,10 @@ static void iselStmt ( ISelEnv* env, IRStmt* stmt, IREndness IEndianess )
          return;
       }
       if (!mode64 && ty == Ity_I128) {
-         HReg r_srcHi, r_srcMedHi, r_srcMedLo, r_srcLo;
+         HReg r_srcHi    = INVALID_HREG;
+         HReg r_srcMedHi = INVALID_HREG;
+         HReg r_srcMedLo = INVALID_HREG;
+         HReg r_srcLo    = INVALID_HREG;
          HReg r_dstHi, r_dstMedHi, r_dstMedLo, r_dstLo;
 
          iselInt128Expr_to_32x4(&r_srcHi, &r_srcMedHi,