regexec.c: CURLY* nodes must clear minmod before shortcut exits #24930
All Vouch review confidence checks passed
Residual risk 0.03 = Change Risk (0.24) × (1 − Review Confidence (0.89)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.24 · 19 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.89 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
Diff Size
diff_size
0.179
Real PR Conversation Timeline
3 items
Approved
This looks reasonable, but I'm not very good with CURLY. I think it should be merged, and we'll see if anything breaks
This looks reasonable, but I'm not very good with CURLY. I think it should be merged, and we'll see if anything breaks
Cheers, will do. (I'm not 100% sure whether all pathways are now correct or not either.)
khwilliamson
richardleach
GH #24926 showed that
"aaaa" =~ /(?:x??\x{100})a+/matchesawhen it should matchaaaa.This was because the non-greedy quantifier attached to
x??incorrectly bled over to affecta+.Specifically, the
minmodflag - which indicates that a non-greedy match should be performed - was not cleared by some CURLY regnodes prior to an earlysayNO(and similar) jump following an unsuccessful match.(This bug was inadvertently introduced in 5.18.0.)
This commit adds
minmod = 0to what look like the affected cases.Note: please could the reviewer double-check the CURLYN and CURLYM_ cases.
Closes #24926
-------------------------------------------------------------------------------
This set of changes requires a perldelta entry, and it is included.