This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug stdio/15301] scanf family misbehaves on %m when zero characters are read


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]