This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.27.9000-470-gb0debe1
- From: jsm28 at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 15 Jun 2018 17:35:51 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.27.9000-470-gb0debe1
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via b0debe14fcfe690eee8b5e693554dd258603805d (commit)
from 14beef7575099f6373f9a45b4656f1e3675f7372 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=b0debe14fcfe690eee8b5e693554dd258603805d
commit b0debe14fcfe690eee8b5e693554dd258603805d
Author: Herman ten Brugge <hermantenbrugge@home.nl>
Date: Fri Jun 15 17:35:17 2018 +0000
Fix sign of NaN returned by strtod (bug 23007).
As reported in bug 23007, strtod ignores any sign in the input string
in the case of a NaN result. Thes patch fixes this.
Tested for x86_64 (in conjunction with tests to be added separately).
[BZ #23007]
* stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
appropriate sign.
diff --git a/ChangeLog b/ChangeLog
index 6cf157a..c0f58f5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
+
+ [BZ #23007]
+ * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
+ appropriate sign.
+
2018-06-14 Florian Weimer <fweimer@redhat.com>
[BZ #23290]
diff --git a/stdlib/strtod_l.c b/stdlib/strtod_l.c
index a09b093..cbff18b 100644
--- a/stdlib/strtod_l.c
+++ b/stdlib/strtod_l.c
@@ -678,7 +678,7 @@ ____STRTOF_INTERNAL (const STRING_TYPE *nptr, STRING_TYPE **endptr, int group,
if (endptr != NULL)
*endptr = (STRING_TYPE *) cp;
- return retval;
+ return negative ? -retval : retval;
}
/* It is really a text we do not recognize. */
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 ++++++
stdlib/strtod_l.c | 2 +-
2 files changed, 7 insertions(+), 1 deletions(-)
hooks/post-receive
--
GNU C Library master sources