NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lib/45020: strtold(3) does not detect NaN



>Number:         45020
>Category:       lib
>Synopsis:       strtold(3) does not detect NaN
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 04 09:55:00 +0000 2011
>Originator:     Jukka Ruohonen
>Release:        5.99.52
>Organization:
-
>Environment:
amd64

>Description:

The saga of strtod(3) bugs continues: the long double variant does not
detect NaN on amd64.

>How-To-Repeat:

        ...

        long double ld;

        ld = strtold("NaN", NULL);

        if (isnan(ld) == 0)
                printf("fail");

        ...

>Fix:

Unknown.



Home | Main Index | Thread Index | Old Index