[uClibc 0001382]: strtod() ERANGE not set on underflow

bugs at busybox.net bugs at busybox.net
Wed Jun 6 18:34:10 UTC 2007


A NOTE has been added to this issue. 
====================================================================== 
http://busybox.net/bugs/view.php?id=1382 
====================================================================== 
Reported By:                chmeee
Assigned To:                uClibc
====================================================================== 
Project:                    uClibc
Issue ID:                   1382
Category:                   Math Library
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             06-06-2007 10:42 PDT
Last Modified:              06-06-2007 11:34 PDT
====================================================================== 
Summary:                    strtod() ERANGE not set on underflow
Description: 
The Xerces test suite checks for underflow on strtod() parsing of the
string

+2.250738585072014e-329

Also with the negative value of this.  It correctly returns 0, but does
not set errno to ERANGE.
====================================================================== 

---------------------------------------------------------------------- 
 bernhardf - 06-06-07 11:34  
---------------------------------------------------------------------- 
May i suggest that you look into libc/stdlib/_strtod.c, looks like
__fp_range_check() to verify that ERANGE is also set on underflow and
supbit a patch?

thanks, 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-06-07 10:42  chmeee         New Issue                                    
06-06-07 10:42  chmeee         Status                   new => assigned     
06-06-07 10:42  chmeee         Assigned To               => uClibc          
06-06-07 11:34  bernhardf      Note Added: 0002459                          
======================================================================




More information about the uClibc-cvs mailing list