Files
hyperframes/packages
Vance IngallsandClaude Opus 5 042d5aaba6 fix(producer): strip script bodies to a fixed point, not one pass
CodeQL (incomplete multi-character sanitization, code-scanning/803) on
the script-stripping regex added in c61a24b51 — a failing check, and
correct: a single replace can reform the pattern it just removed, since
`<scr<script>ipt>` leaves a whole `<script>` behind.

The security framing does not apply — the stripped string is counted and
discarded, never rendered, inserted, or served — but the incompleteness
is real for this use: a reformed tag survives into the match pass and
perturbs the element count the routing gate reads. Suppressing a gate
over a technicality when the fix is four lines is the wrong trade.

Now loops to a fixed point. Terminates by construction: each iteration
either strictly shortens the string or changes nothing and exits.
Regression covers the reform case and an unterminated `<script>` that
must not spin; fault injection confirms the reform test fails under the
old single pass.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-30 00:13:42 -07:00
..
2026-07-29 18:37:58 -07:00
2026-07-29 18:37:58 -07:00
2026-07-29 18:37:58 -07:00
2026-07-29 18:37:58 -07:00
2026-07-29 18:37:58 -07:00
2026-07-29 18:37:58 -07:00
2026-07-29 18:37:58 -07:00
2026-07-29 18:37:58 -07:00
2026-07-29 18:37:58 -07:00
2026-07-29 18:37:58 -07:00