mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
[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.
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user