[libc-commits] [libc] [libc] Keep a stream buffered when setvbuf is passed no buffer (PR #236517)
Mike Lothian via libc-commits
libc-commits at lists.llvm.org
Thu Oct 29 02:23:03 PDT 2026
FireBurn wrote:
You are right, and the old code already resized the buffer for a non-zero size, so that part of my change isn't needed. What I changed is size zero: setvbuf(f, nullptr, _IOFBF, 0) left the stream with no buffer at all, so asking for a buffer to be provided silently turned buffering off
If you think that is the correct reading of the standard I will drop it and keep only the delete[] fix
https://github.com/llvm/llvm-project/pull/236517
More information about the libc-commits
mailing list