Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/tests/CMakeLists.txt
diff options
context:
space:
mode:
authorLeitwolf112026-11-17 19:00:44 +0300
committerLeitwolf112026-11-17 19:00:44 +0300
commit7c3b73b14a3f0714c8eca3ad1a69bc1963ae773d (patch)
treeff49cb6e7f90b671577993202249f207cfc99b6d /tests/CMakeLists.txt
parent7ff85d401d6f7f2d37fc0566f346a521a9bb7cee (diff)
downloadcatch3-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/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions