This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug stdio/10108] setvbuf _IOFBF doesn't honor size correctly
- From: "fche at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Sun, 22 Jun 2014 11:29:27 +0000
- Subject: [Bug stdio/10108] setvbuf _IOFBF doesn't honor size correctly
- Auto-submitted: auto-generated
- References: <bug-10108-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=10108
--- Comment #8 from Frank Ch. Eigler <fche at redhat dot com> ---
(In reply to Andreas Schwab from comment #6)
> Since buf is non-NULL here this block of code isn't executed at all.
OK, the original comment#0 has a non-zero buffer. Should I file a
separate PR for this case:
setvbuf(fp, NULL, _IOFBF, size);
expecting glibc to allocate a size-sized malloc buffer, being
disappointed.
--
You are receiving this mail because:
You are on the CC list for the bug.