aboutsummaryrefslogtreecommitdiff
path: root/stdlib/strtod_l.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2008-03-08 21:32:18 +0000
committerUlrich Drepper <drepper@redhat.com>2008-03-08 21:32:18 +0000
commitb3278554af25d7431fdf03388278e22b51578fab (patch)
treee0812eceff2ea558be508e66dbd8808ee35015fd /stdlib/strtod_l.c
parent2127a18634b03df94c69900765c3a44016251d93 (diff)
downloadglibc-b3278554af25d7431fdf03388278e22b51578fab.zip
glibc-b3278554af25d7431fdf03388278e22b51578fab.tar.gz
glibc-b3278554af25d7431fdf03388278e22b51578fab.tar.bz2
[BZ #5774]
* stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace on NAN(...) sequence. * stdlib/Makefile (tests): Add tst-strtod6. * stdlib/tst-strtod6.c: New file. * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
Diffstat (limited to 'stdlib/strtod_l.c')
-rw-r--r--stdlib/strtod_l.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/stdlib/strtod_l.c b/stdlib/strtod_l.c
index d1c2b62..9c2f86a 100644
--- a/stdlib/strtod_l.c
+++ b/stdlib/strtod_l.c
@@ -594,6 +594,9 @@ ____STRTOF_INTERNAL (nptr, endptr, group, loc)
mant = STRTOULL (startp + 1, &endp, 0);
if (endp == cp)
SET_MANTISSA (retval, mant);
+
+ /* Consume the closing brace. */
+ ++cp;
}
}