This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug stdio/15301] scanf family misbehaves on %m when zero characters are read
- From: "repentinus at fsfe dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 25 Mar 2013 01:47:50 +0000
- Subject: [Bug stdio/15301] scanf family misbehaves on %m when zero characters are read
- Auto-submitted: auto-generated
- References: <bug-15301-131 at http dot sourceware dot org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=15301
--- Comment #2 from Heiki Ojasild <repentinus at fsfe dot org> 2013-03-25 01:47:50 UTC ---
Created attachment 6946
--> http://sourceware.org/bugzilla/attachment.cgi?id=6946
Another test case
It is also possible to adopt the view that since non-empty sequences do not
math %[, "" should not be put into the pointer. However, in that case there is
no reason to alter the value of the pointer, which glibc does as demonstrated
in the attached testcase (also at <http://ideone.com/Vv3Opu>).
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.