Fix soft-fp shadowing between __FP_FRAC_ADD_3 and _FP_MUL_MEAT_2_wide_3mul (bug 15667).

This commit is contained in:
Joseph Myers 2013-06-22 19:27:41 +00:00
parent d1d5471579
commit 695c378f81
3 changed files with 13 additions and 7 deletions

View File

@ -1,3 +1,9 @@
2013-06-22 Joseph Myers <joseph@codesourcery.com>
[BZ #15667]
* soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
2013-06-21 Maciej W. Rozycki <macro@codesourcery.com>
* elf/dl-dst.h (DL_DST_REQUIRED): Remove call to

2
NEWS
View File

@ -21,7 +21,7 @@ Version 2.18
15416, 15418, 15419, 15423, 15424, 15426, 15429, 15431, 15432, 15441,
15442, 15448, 15465, 15480, 15485, 15488, 15490, 15492, 15493, 15497,
15506, 15529, 15536, 15553, 15577, 15583, 15618, 15627, 15631, 15654,
15655.
15655, 15667.
* CVE-2013-0242 Buffer overrun in regexp matcher has been fixed (Bugzilla
#15078).

View File

@ -525,14 +525,14 @@
#ifndef __FP_FRAC_ADD_3
#define __FP_FRAC_ADD_3(r2,r1,r0,x2,x1,x0,y2,y1,y0) \
do { \
_FP_W_TYPE _c1, _c2; \
_FP_W_TYPE __FP_FRAC_ADD_3_c1, __FP_FRAC_ADD_3_c2; \
r0 = x0 + y0; \
_c1 = r0 < x0; \
__FP_FRAC_ADD_3_c1 = r0 < x0; \
r1 = x1 + y1; \
_c2 = r1 < x1; \
r1 += _c1; \
_c2 |= r1 < _c1; \
r2 = x2 + y2 + _c2; \
__FP_FRAC_ADD_3_c2 = r1 < x1; \
r1 += __FP_FRAC_ADD_3_c1; \
__FP_FRAC_ADD_3_c2 |= r1 < __FP_FRAC_ADD_3_c1; \
r2 = x2 + y2 + __FP_FRAC_ADD_3_c2; \
} while (0)
#endif