Security context

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

c3lang/c3c
master @ 5fef3b5
8
Fixes
0
CVEs
HIGH
Peak severity
42.9%
Coverage
Highlights
Out-of-bounds Write: 2 prior fixes. Scrutinize any change in this area.
lib/std/collections/bitset.c3: most-fixed (1 issue). Treat as high-risk during review.
3 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.

Out-of-bounds Write: Array-shifting operations during element insertion calculated slice boundaries using obsolete array size variables, leading to potential heap memory corruption. Developers must ensure structure size metadata is incremented before executing index-shifting loops.
Out-of-bounds Write: Manual slice writes during dynamic memory expansion allowed writes past allocated buffers. Replacing raw slice assignments with explicit, loop-driven push sequences prevents incorrect size calculation exploits.
Path Traversal: Extraction of untrusted ZIP archives permitted files to be written outside the target directory (Zip Slip). Standard library paths must undergo canonicalization and verification against an expected directory prefix.