diff options
author | Andreas Jaeger <aj@suse.de> | 2011-07-08 13:16:26 -0400 |
---|---|---|
committer | Andreas Schwab <schwab@redhat.com> | 2011-07-21 12:19:50 +0200 |
commit | b3c34b4a97273baf7546cd85bc90621571eee7cd (patch) | |
tree | 44ef7bab3370063c421edac166cf5527e7f0f567 | |
parent | 51f8ca96484efa481e3c86d48560fd7061cfdbc1 (diff) | |
download | glibc-b3c34b4a97273baf7546cd85bc90621571eee7cd.tar.gz glibc-b3c34b4a97273baf7546cd85bc90621571eee7cd.tar.xz glibc-b3c34b4a97273baf7546cd85bc90621571eee7cd.zip |
Add test case strtod underflow
(cherry picked from commit 04d08991c4612450880eb55a1d3070597429b7cb)
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | stdlib/tst-strtod.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index af6de9054a..22f63b168c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-07-05 Andreas Jaeger <aj@suse.de> + + [BZ#9696] + * stdlib/tst-strtod.c: Add testcase. + 2011-07-07 Ulrich Drepper <drepper@gmail.com> [BZ #12868] diff --git a/stdlib/tst-strtod.c b/stdlib/tst-strtod.c index c30eb1ee12..1cb9a5cb0e 100644 --- a/stdlib/tst-strtod.c +++ b/stdlib/tst-strtod.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991,1996-2001,2003,2009 Free Software Foundation, Inc. +/* Copyright (C) 1991,1996-2001,2003,2009,2011 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -72,6 +72,7 @@ static const struct ltest tests[] = { "+InFiNiTy", HUGE_VAL, '\0', 0 }, #endif { "0x80000Ap-23", 0x80000Ap-23, '\0', 0 }, + { "1e-324", 0, '\0', ERANGE }, { NULL, 0, '\0', 0 } }; |