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
Integer overflow in rangecheck.cpp when lcns is int.MinValue #127639
If lcns is int.MinValue, then the expression -lcns evaluates as -int.MinValue, or just int.MinValue. The condition on line 211 improperly evaluates to false, line 213 gets skipped, and line 215 returns true.
Activity
dotnet-policy-service commentedon May 1, 2026
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.
EgorBo commentedon May 1, 2026
Looks like this code hasn't been touched in ~10 years
EgorBo commentedon May 1, 2026
I actually wasn't able to construct a test (at least for .NET 11.0) where the bug could kick in, but still worth handling..
Fix INT_MIN overflow in RangeCheck::BetweenBounds (#127648)
Fix INT_MIN overflow in RangeCheck::BetweenBounds (#127648)