[Bug stdio/10108] setvbuf _IOFBF doesn't honor size correctly

fche at redhat dot com sourceware-bugzilla@sourceware.org
Sun Jun 22 11:29:00 GMT 2014


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.



More information about the Glibc-bugs mailing list