Fix strtod() flaw.

Sergei Organov osv@javad.com
Wed Dec 28 16:54:00 GMT 2005


Andrew Lunn <andrew@lunn.ch> writes:

> On Tue, Dec 27, 2005 at 09:50:30PM +0300, Sergei Organov wrote:
>> Hello,
>> 
>> strtod() bundled with eCos considers 'd' and 'D' to be synonyms for 'e'
>> and 'E' in floating point numbers though according to specification only
>> 'e' and 'E' are allowed. The patch below fixes it.
>
> Could you point me towards an online copy of the specification.

Well, I took it from glibc info documentation, not from C language specs
that I doubt could be found online. A reference is here:

<http://www.gnu.org/software/libc/manual/html_node/Parsing-of-Floats.html#Parsing-of-Floats>

-- Sergei.



More information about the Ecos-patches mailing list