mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
Fix array overflow in floating point parser
This commit is contained in:
parent
f2933da978
commit
a726d7960e
@ -1,3 +1,9 @@
|
||||
2010-08-31 Andreas Schwab <schwab@redhat.com>
|
||||
|
||||
[BZ #7066]
|
||||
* stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
|
||||
shifting retval into place.
|
||||
|
||||
2010-09-01 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* nis/rpcsvc/nis.h: Update copyright notice.
|
||||
|
2
NEWS
2
NEWS
@ -9,7 +9,7 @@ Version 2.13
|
||||
|
||||
* The following bugs are resolved with this release:
|
||||
|
||||
10851, 11640, 11701, 11840, 11856, 11883, 11903, 11904
|
||||
7066, 10851, 11640, 11701, 11840, 11856, 11883, 11903, 11904
|
||||
|
||||
* New Linux interfaces: prlimit, prlimit64, fanotify_init, fanotify_mark
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user