-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ToFrozenDictionary function throws ArgumentOutOfRangeException exception in .Net 8 Pewview 7 #90567
Comments
Tagging subscribers to this area: @dotnet/area-system-collections Issue DetailsDescribe the bugToFrozenDictionary function throws ArgumentOutOfRangeException exception in .Net 8 Pewview 7 To Reproduce
Exceptions (if any)System.ArgumentOutOfRangeException: 'minimumLength ('-2147483638') must be a non-negative value. (Parameter 'minimumLength') Further technical details.NET SDK:
|
Can reproduce, seems like this code runtime/src/libraries/System.Collections.Immutable/src/System/Collections/Frozen/FrozenDictionary.cs Lines 154 to 170 in 55c896f
does not account for empty dictionary inputs. This appears to be causing this assertion Line 35 in 55c896f
to fail in debug builds. cc @adamsitnik @stephentoub |
@eiriktsarpalis It would fail eariier at Line 167: And another issue: runtime/src/libraries/System.Collections.Immutable/src/System/Collections/Frozen/FrozenDictionary.cs Line 232 in 55c896f
Line 26 in 55c896f
Maybe something is missing to ensure |
Will this change be deliveried in next release? I downgraded my Visual Studio and .Net 8 SDK to compile my solution. |
Yes, in .NET 8 RC1 |
Describe the bug
ToFrozenDictionary function throws ArgumentOutOfRangeException exception in .Net 8 Pewview 7
To Reproduce
Exceptions (if any)
System.ArgumentOutOfRangeException: 'minimumLength ('-2147483638') must be a non-negative value. (Parameter 'minimumLength')
Actual value was -2147483638.'
Further technical details
.NET SDK:
Version: 8.0.100-preview.7.23376.3
Commit: daebeea8ea
The text was updated successfully, but these errors were encountered: