diff options
| author | Leitwolf11 | 2026-11-17 19:00:44 +0300 |
|---|---|---|
| committer | Leitwolf11 | 2026-11-17 19:00:44 +0300 |
| commit | 7c3b73b14a3f0714c8eca3ad1a69bc1963ae773d (patch) | |
| tree | ff49cb6e7f90b671577993202249f207cfc99b6d /tests/TestScripts | |
| parent | 7ff85d401d6f7f2d37fc0566f346a521a9bb7cee (diff) | |
| download | catch3-fix/pipe-read-limit.tar.gz | |
Ask read() for at most SSIZE_MAX bytes in PipeReader::Readfix/pipe-read-limit
POSIX leaves a read() request above SSIZE_MAX to the implementation, and
the count it returns could not then be told from an error. The POSIX
branch of PipeReader::Read now asks for the smaller of the buffer size and
SSIZE_MAX, as the Windows branch already limits one ReadFile call. The
caller sees no change: a short read was always possible, and the reader
loops until the pipe ends.
The single-file distribution is regenerated from the sources.
Checked: bazelisk test //... (3 of 3 pass), bazelisk run
//tools:amalgamate -- --check, clang-format dry-run with -Werror.
Diffstat (limited to 'tests/TestScripts')
0 files changed, 0 insertions, 0 deletions