This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
Re: [Bug libc/15854] strtod should avoid calling strlen
- From: OndÅej BÃlka <neleai at seznam dot cz>
- To: emogenet at gmail dot com <sourceware-bugzilla at sourceware dot org>
- Cc: glibc-bugs at sourceware dot org
- Date: Sat, 24 Aug 2013 09:42:32 +0200
- Subject: Re: [Bug libc/15854] strtod should avoid calling strlen
- References: <bug-15854-131 at http dot sourceware dot org/bugzilla/> <bug-15854-131-NO6oT57Biv at http dot sourceware dot org/bugzilla/>
On Tue, Aug 20, 2013 at 07:29:21AM +0000, emogenet at gmail dot com wrote:
> http://sourceware.org/bugzilla/show_bug.cgi?id=15854
>
> --- Comment #2 from emogenet at gmail dot com ---
> You are correct, the call tp strlen in strtod is not a problem. I
> incrorectly assumed
> it was calling strlen on the whole buffer because sscanf does exhibit the
> problem I
> describe, but as it turns out, the problem is inherent to sscanf, and
> strtod works fine.
>
And could you provide sscanf testcase as separate bug report?