Previously, any line buffered write of size 0 would cause an error.
The variable used to track the index of the last newline started at
the size of the write - 1, which underflowed. Now it's handled properly,
and a test has been added to prevent regressions.
Details
Details
- Reviewers
sivachandra lntue - Commits
- rG5bcda1d3a937: [libc] fix line buffered empty file writes
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo