diff options
author | Ulrich Drepper <drepper@redhat.com> | 2008-03-08 21:32:18 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2008-03-08 21:32:18 +0000 |
commit | b3278554af25d7431fdf03388278e22b51578fab (patch) | |
tree | e0812eceff2ea558be508e66dbd8808ee35015fd /inet/inet6_opt.c | |
parent | 2127a18634b03df94c69900765c3a44016251d93 (diff) | |
download | glibc-b3278554af25d7431fdf03388278e22b51578fab.tar.gz glibc-b3278554af25d7431fdf03388278e22b51578fab.tar.xz glibc-b3278554af25d7431fdf03388278e22b51578fab.zip |
[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 'inet/inet6_opt.c')
-rw-r--r-- | inet/inet6_opt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inet/inet6_opt.c b/inet/inet6_opt.c index 83063d2259..ccf7af5f61 100644 --- a/inet/inet6_opt.c +++ b/inet/inet6_opt.c @@ -34,7 +34,7 @@ inet6_opt_init (void *extbuf, socklen_t extlen) { if (extbuf != NULL) { - if (extlen <= 0 || (extlen % 8) != 0) + if (extlen <= 0 || (extlen % 8) != 0 || extlen > 256 * 8) return -1; /* Fill in the length in units of 8 octets. */ |