public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug stdio/17080] New: setvbuf _IOFBF with buf=null doesn't honor size @ 2014-06-23 13:36 fche at redhat dot com 2014-06-23 15:27 ` [Bug stdio/17080] " schwab@linux-m68k.org ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: fche at redhat dot com @ 2014-06-23 13:36 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=17080 Bug ID: 17080 Summary: setvbuf _IOFBF with buf=null doesn't honor size Product: glibc Version: unspecified Status: NEW Severity: minor Priority: P2 Component: stdio Assignee: unassigned at sourceware dot org Reporter: fche at redhat dot com CC: allachan at au1 dot ibm.com, bugdal at aerifal dot cx, fche at redhat dot com, glibc-bugs at sourceware dot org, neleai at seznam dot cz, P at draigBrady dot com Depends on: 10108 Host: i686-pc-linux-gnu Target: i686-pc-linux-gnu Build: i686-pc-linux-gnu +++ This bug was initially created as a clone of Bug #10108 +++ Calling setvbuf (fp, NULL, _IOFBF, size); results in a size-ignoring buffer, due to this block in libio/iosetvbuf.c: switch (mode) { case _IOFBF: fp->_IO_file_flags &= ~(_IO_LINE_BUF|_IO_UNBUFFERED); if (buf == NULL) { if (fp->_IO_buf_base == NULL) if (_IO_DOALLOCATE (fp) < 0) { result = EOF; goto unlock_return; } fp->_IO_file_flags &= ~_IO_LINE_BUF; } result = 0; goto unlock_return; } break; Note specifically how _IO_DOALLOCATE (fp) is called, without any reference for the incoming size value. (_IO_DOALLOCATE uses the block size of the underlying filesystem.) -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug stdio/17080] setvbuf _IOFBF with buf=null doesn't honor size 2014-06-23 13:36 [Bug stdio/17080] New: setvbuf _IOFBF with buf=null doesn't honor size fche at redhat dot com @ 2014-06-23 15:27 ` schwab@linux-m68k.org 2014-06-24 8:26 ` fweimer at redhat dot com 2023-06-26 6:03 ` gabravier at gmail dot com 2 siblings, 0 replies; 4+ messages in thread From: schwab@linux-m68k.org @ 2014-06-23 15:27 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=17080 Andreas Schwab <schwab@linux-m68k.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on|10108 | -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug stdio/17080] setvbuf _IOFBF with buf=null doesn't honor size 2014-06-23 13:36 [Bug stdio/17080] New: setvbuf _IOFBF with buf=null doesn't honor size fche at redhat dot com 2014-06-23 15:27 ` [Bug stdio/17080] " schwab@linux-m68k.org @ 2014-06-24 8:26 ` fweimer at redhat dot com 2023-06-26 6:03 ` gabravier at gmail dot com 2 siblings, 0 replies; 4+ messages in thread From: fweimer at redhat dot com @ 2014-06-24 8:26 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=17080 Florian Weimer <fweimer at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |security- -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug stdio/17080] setvbuf _IOFBF with buf=null doesn't honor size 2014-06-23 13:36 [Bug stdio/17080] New: setvbuf _IOFBF with buf=null doesn't honor size fche at redhat dot com 2014-06-23 15:27 ` [Bug stdio/17080] " schwab@linux-m68k.org 2014-06-24 8:26 ` fweimer at redhat dot com @ 2023-06-26 6:03 ` gabravier at gmail dot com 2 siblings, 0 replies; 4+ messages in thread From: gabravier at gmail dot com @ 2023-06-26 6:03 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=17080 Gabriel Ravier <gabravier at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gabravier at gmail dot com -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-06-26 6:03 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2014-06-23 13:36 [Bug stdio/17080] New: setvbuf _IOFBF with buf=null doesn't honor size fche at redhat dot com 2014-06-23 15:27 ` [Bug stdio/17080] " schwab@linux-m68k.org 2014-06-24 8:26 ` fweimer at redhat dot com 2023-06-26 6:03 ` gabravier at gmail dot com
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).