This is the mail archive of the glibc-bugs@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug math/256] New: Malfunctions in strtold, powl & nanl functions


x.c:
#include <math.h>
#include <stdio.h>

int main(void){
 printf("strtold(\"inf\", 0) = %Lg\n", strtold("inf", 0));
 printf("strtold(\"nan\", 0) = %Lg\n", strtold("nan", 0));
 
 printf("inf = %Lg\n", powl(3.43646e+4928l, 3.43646e+4928l));
 printf("0 = %Lg\n", powl(10.0l, -1.1807237520575617777e+4932l));
 
 printf("nanl(0) = %Lg\n", nanl(0));
 return 0;
}

gcc x.c -lm -o x && ./x
strtold("inf", 0) = -9.02689e-4683
strtold("nan", 0) = -9.02689e-4683
inf = nan
0 = nan
Segmentation fault

-- 
           Summary: Malfunctions in strtold, powl & nanl functions
           Product: glibc
           Version: 2.3.2
            Status: NEW
          Severity: normal
          Priority: P2
         Component: math
        AssignedTo: aj at suse dot de
        ReportedBy: ronaldbrt at yahoo dot com
                CC: glibc-bugs at sources dot redhat dot com


http://sources.redhat.com/bugzilla/show_bug.cgi?id=256

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]