mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Fix array overflow in floating point parser
This commit is contained in:
committed by
Ulrich Drepper
parent
f2933da978
commit
a726d7960e
@ -1491,7 +1491,9 @@ ____STRTOF_INTERNAL (nptr, endptr, group, loc)
|
||||
register int i;
|
||||
(void) __mpn_lshift (&retval[used
|
||||
/ BITS_PER_MP_LIMB],
|
||||
retval, RETURN_LIMB_SIZE,
|
||||
retval,
|
||||
(RETURN_LIMB_SIZE
|
||||
- used / BITS_PER_MP_LIMB),
|
||||
used % BITS_PER_MP_LIMB);
|
||||
for (i = used / BITS_PER_MP_LIMB - 1; i >= 0; --i)
|
||||
retval[i] = 0;
|
||||
|
Reference in New Issue
Block a user