Security context

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

bellard/quickjs
master @ 04be246
12
Fixes
0
CVEs
HIGH
Peak severity
81.8%
Coverage
Highlights
Buffer Overflow: 3 prior fixes. Scrutinize any change in this area.
quickjs.c: most-fixed (10 issues). Treat as high-risk during review.
12 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 / Buffer Overflow: Multiple distinct typed-array operations write out of bounds when the underlying buffer is resizable or when offsets/lengths are not validated against byte_length. These are independent code paths sharing the same root cause: missing bounds validation before pointer arithmetic or memcpy.
Out-of-Bounds Read / Buffer Overflow: Reads past the end of typed array buffers or BigInt limb arrays due to missing source-bounds checks or unclamped indices derived from float arguments. Each fix adds a specific bounds check that sibling operations may still lack.
Buffer Overflow: The regexp engine has two distinct buffer overflow bugs: one from incorrect stack index arithmetic during backtracking, another from integer overflow in bytecode size limits. These affect the core regexp compiler/executor used by all string matching.