Skip to content

tests: add an assert to avoid IPC blocking#21688

Closed
dfandrich wants to merge 1 commit into
masterfrom
dfandrich/testrunner
Closed

tests: add an assert to avoid IPC blocking#21688
dfandrich wants to merge 1 commit into
masterfrom
dfandrich/testrunner

Conversation

@dfandrich

Copy link
Copy Markdown
Contributor

If so much data is being sent over the internal IPC pipe that the pipe
buffer fills and the syscall blocks, the program will hang. Add an
assert to ensure that this limit is never reached. The buffer size is
going to be different on different platforms, so choose 1KB which is
likely to be a reasonable lower bound on just about any system.
Currently, the maximum amount ever written is <100 bytes, so this should
provide plenty of headroom.

Spotted by Codex Security

Closes #21688

If so much data is being sent over the internal IPC pipe that the pipe
buffer fills and the syscall blocks, the program will hang. Add an
assert to ensure that this limit is never reached. The buffer size is
going to be different on different platforms, so choose 1KB which is
likely to be a reasonable lower bound on just about any system.
Currently, the maximum amount ever written is <100 bytes, so this should
provide plenty of headroom.

Spotted by Codex Security

Closes #21688
@github-actions github-actions Bot added the tests label May 20, 2026
@dfandrich dfandrich closed this in d3b04e5 May 20, 2026
@dfandrich dfandrich deleted the dfandrich/testrunner branch May 20, 2026 18:33
outcast36 pushed a commit to greearb/curl that referenced this pull request Jun 3, 2026
If so much data is being sent over the internal IPC pipe that the pipe
buffer fills and the syscall blocks, the program will hang. Add an
assert to ensure that this limit is never reached. The buffer size is
going to be different on different platforms, so choose 1KB which is
likely to be a reasonable lower bound on just about any system.
Currently, the maximum amount ever written is <100 bytes, so this should
provide plenty of headroom.

Spotted by Codex Security

Closes curl#21688
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

3 participants