The process-capture example can deadlock despite being documented as capture without deadlocks.
- Category
- Excessive Agency
- Confidence
- 99% confidence
- Finding
Reading stdout to completion before reading stderr can deadlock: if the child fills the stderr pipe while stdout remains open, the child blocks writing stderr and the parent blocks waiting for stdout EOF. Although the specific git example may not trigger this, presenting it as a deadlock-free general template encourages reuse that can cause availability failures, especially with attacker-influenced child output; the example also lacks a timeout.
- Content
