+13
−3
+16
−0
Loading
setvbuf() was a no-op, so a FILE read ahead BUFSIZ bytes even when the
caller asked for no buffering. git reads its remote helper's one-line
reply through such a FILE and the rest from the fd: with protocol v2
over https the capabilities vanished into the FILE's buffer and git
hung. FILE gets an appended __nbf field (FILE objects are only created
by the libc); invalid modes now fail with EINVAL.
Co-Authored-By:
Claude Opus 5.5 <noreply@anthropic.com>