Commit 1481e16abbab14a2e19410770f97cb764bb9be16
1 parent
4af6e404
Fix typo that leads to out of bounds array access on big endian systems
Showing
1 changed file
with
1 additions
and
1 deletions
target-ppc/op_helper.c
... | ... | @@ -2723,7 +2723,7 @@ void helper_vlogefp (ppc_avr_t *r, ppc_avr_t *b) |
2723 | 2723 | #define VSHIFT(suffix, leftp) \ |
2724 | 2724 | void helper_vs##suffix (ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) \ |
2725 | 2725 | { \ |
2726 | - int shift = b->u8[LO_IDX*0x15] & 0x7; \ | |
2726 | + int shift = b->u8[LO_IDX*15] & 0x7; \ | |
2727 | 2727 | int doit = 1; \ |
2728 | 2728 | int i; \ |
2729 | 2729 | for (i = 0; i < ARRAY_SIZE(r->u8); i++) { \ | ... | ... |