← Back to Pull requests

Editorial: correct the upper bound in MakeMatchIndicesIndexPairArray #4061

Open
JinDX opened this pull request with 2 lines diff across 1 files
View on GitHub
JinDX JinDX commented on Oct 31, 2026 07:52 UTC
Author

MakeMatchIndicesIndexPairArray asserts that the length of indices is strictly less than 2^32 − 1. The caller permits equality at this boundary.

The Pattern early error rejects a capturing-group count C only when C ≥ 2^32 − 1. RegExpBuiltinExec likewise asserts C < 2^32 − 1. Its indices list contains one entry for the entire match and one entry for every capturing group, so its length is C + 1. For the permitted boundary C = 2^32 − 2, that length is 2^32 − 1. ArrayCreate also permits this length; it throws only when the length is greater than 2^32 − 1.

<!--
If you are changing the signature or behavior of an existing construct, please check if this affects downstream dependencies (searching for the construct's name is sufficient) and if needed file an issue:

Web IDL — file an issue
HTML Standard — file an issue
ECMAScript Intl API - file an issue
WebAssembly - file an issue

Note: please ensure that the "Allow edits and access to secrets by maintainers" checkbox remains checked.
-->

Diff: 2 lines (+1 / -1) across 1 files Reviewer: linusg Review duration: 50443m
All Vouch review confidence checks passed
Residual risk 0.09 = Change Risk (0.17) × (1 − Review Confidence (0.48)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.17 · 2 lines diff across 1 files
0.17
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.00 · 1 substantive comment(s)
0.00
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
48%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth shallow_review_depth
0.350
Diff Size diff_size
0.066
Real PR Conversation Timeline
4 items
linusg linusg approved these changes on Nov 02, 2026 11:59 UTC
Approved Reviewer

Approved these changes.

nicolo-ribaudo nicolo-ribaudo approved these changes on Nov 02, 2026 14:19 UTC
Approved Reviewer

Approved these changes.

rbuckton rbuckton approved these changes on Nov 30, 2026 15:19 UTC
Approved Reviewer

Approved these changes.

Reviewers
Assignees
JinDX JinDX
Labels
risk: low confidence: 48% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 16.6% (LOW) · Higher = larger blast radius
16.6%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 48% · Lower = rushed or shallow review
48%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 8.6% · Safe to merge
8.6%
Repository