[Bug libc/23007] strtod cannot handle -nan

cvs-commit at gcc dot gnu.org sourceware-bugzilla@sourceware.org
Fri Jun 15 17:37:00 GMT 2018


https://sourceware.org/bugzilla/show_bug.cgi?id=23007

--- Comment #4 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
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  b12c1e7991cbde3d6fc70abfdf72abecce8b318c (commit)
      from  b0debe14fcfe690eee8b5e693554dd258603805d (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 -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=b12c1e7991cbde3d6fc70abfdf72abecce8b318c

commit b12c1e7991cbde3d6fc70abfdf72abecce8b318c
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Fri Jun 15 17:36:21 2018 +0000

    Add tests for sign of NaN returned by strtod (bug 23007).

    This patch adds tests for bug 23007, strtod ignoring any sign in the
    input string in the case of a NaN result.

    Tested for x86_64.

        [BZ #23007]
        * stdlib/tst-strtod-nan-sign-main.c: New file.
        * stdlib/tst-strtod-nan-sign.c: Likewise.
        * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
        * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
        ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
        * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
        ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                         |   11 ++++++++
 stdlib/Makefile                   |    3 +-
 stdlib/tst-strtod-nan-sign-main.c |   50 +++++++++++++++++++++++++++++++++++++
 stdlib/tst-strtod-nan-sign.c      |   23 +++++++++++++++++
 wcsmbs/Makefile                   |    3 +-
 wcsmbs/tst-wcstod-nan-sign.c      |   23 +++++++++++++++++
 6 files changed, 111 insertions(+), 2 deletions(-)
 create mode 100644 stdlib/tst-strtod-nan-sign-main.c
 create mode 100644 stdlib/tst-strtod-nan-sign.c
 create mode 100644 wcsmbs/tst-wcstod-nan-sign.c

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list