qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT 1481e16] Fix typo that leads to out of bounds arr


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT 1481e16] Fix typo that leads to out of bounds array access onbig endian systems
Date: Wed, 13 May 2009 11:25:29 -0000

From: malc <address@hidden>


diff --git a/target-ppc/op_helper.c b/target-ppc/op_helper.c
index 2c6a27f..56fab9c 100644
--- a/target-ppc/op_helper.c
+++ b/target-ppc/op_helper.c
@@ -2723,7 +2723,7 @@ void helper_vlogefp (ppc_avr_t *r, ppc_avr_t *b)
 #define VSHIFT(suffix, leftp)                                           \
     void helper_vs##suffix (ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b)   \
     {                                                                   \
-        int shift = b->u8[LO_IDX*0x15] & 0x7;                           \
+        int shift = b->u8[LO_IDX*15] & 0x7;                             \
         int doit = 1;                                                   \
         int i;                                                          \
         for (i = 0; i < ARRAY_SIZE(r->u8); i++) {                       \




reply via email to

[Prev in Thread] Current Thread [Next in Thread]