Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

stebalien/tempfile
master @ 55294bf
2
Fixes
0
CVEs
MEDIUM
Peak severity
100.0%
Coverage
Highlights
Denial of Service: 2 prior fixes. Scrutinize any change in this area.
src/spooled.rs: most-fixed (1 issue). Treat as high-risk during review.
0 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Denial of Service: Process crash (denial of service) triggered when temporary file creation is attempted within thread-local destructors, caused by accessing deallocated thread-local RNG storage during name generation. This is fixed by utilizing a fallback RNG mechanism.
Denial of Service: Memory exhaustion and bypass of disk-rollover thresholds due to integer overflows and truncation during size limit checks in SpooledTempFile, allowing excessive memory allocation.