[PATCH] Don't accept exp char without digits in scanf float parsing

Rich Felker dalias@aerifal.cx
Mon Jan 14 17:04:00 GMT 2013


On Mon, Jan 14, 2013 at 05:41:22PM +0100, Andreas Schwab wrote:
> A floating point number must have at least one digit before the exponent
> character, so scanf should not parse beyond the exponent character when
> no digits were seen yet.
> 
> Andreas.
> 
> 	[BZ #13988]

Nice to see this bug being addressed! Have you looked at #12701 and
the attached test cases?

Rich



More information about the Libc-alpha mailing list