[CP] Fix Dart2js stack overflow in value range analysis #54494
Labels
area-infrastructure
Use area-infrastructure for SDK infrastructure issues, like continuous integration bot changes.
cherry-pick-approved
Label for approved cherrypick request
cherry-pick-review
Issue that need cherry pick triage to approve
merge-to-stable
Commit(s) to merge
6a9b550
Target
stable
Prepared changelist for beta/stable
https://dart-review.googlesource.com/c/sdk/+/344241
Issue Description
Dart2JS is crashing with a stack overflow in some scenarios when a variable is declared before a loop and updated within the loop. This logic was improved recently but some logic was missed when dispatching operators within the value range analyzer.
What is the fix
The fix is to correctly delegate operations within Dart2JS's value range analysis.
Why cherry-pick
This can cause the compiler to crash on fairly trivial code. For example (from original bug):
Risk
low
Issue link(s)
#54453
Extra Info
No response
The text was updated successfully, but these errors were encountered: