You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 93b842b
Browse filesBrowse the repository at this point in the historyBrowse files
fix(review): harden gate_runs_unconditionally against unclosed blocks (#122)
Code review of the egress-guard hardening:
- Clamp the span-advance index so an unclosed `if service ==` block can't
slice past the body end and panic (latent: real source is balanced, but the
scraper should not crash on a pathological future body). Keep span-to-EOF as
the fail-safe direction.
- Document that only `if service ==` is detected, not `match service`, so a
future match-arm gate isn't silently treated as full.
- Add unit cases: gate inside both service blocks (conditional), gate inside
and outside (full), and the unclosed-block no-panic regression.
0 commit comments