mirror of https://git.musl-libc.org/git/musl
Browse Source
the buffer enlargement logic here accounted for the terminating null byte, but not for the possibility of hitting the delimiter in the buffer-refill code path that uses getc_unlocked, in which case two additional bytes (the delimiter and the null termination) are written without another chance to enlarge the buffer. this patch and the corresponding bug report are by Felix Janda.master
1 changed files with 1 additions and 1 deletions
Loading…
Reference in new issue