-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Replace a few stackallocs with collection expressions #105121
Conversation
Tagging subscribers to this area: @dotnet/area-meta |
Thanks, @danmoseley, but CI is down and didn't run on this pr |
Oh nuts... was there a way I could have determined that? I thought it was all green - but I'm on a phone. |
Oh, expanding it I see the legs are missing. |
I think this getting merged introduce a build break:
|
@@ -60,8 +60,7 @@ internal static partial class Pbkdf2Implementation | |||
if (password.IsEmpty) | |||
{ | |||
// CNG won't accept a null pointer for the password. | |||
symmetricKeyMaterial = stackalloc byte[1]; | |||
symmetricKeyMaterialLength = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stephentoub - this change is causing build errors:
D:\a\_work\1\s\src\libraries\System.Security.Cryptography\src\System\Security\Cryptography\Pbkdf2Implementation.Windows.cs(127,25): error CS0165: Use of unassigned local variable 'symmetricKeyMaterialLength' [D:\a\_work\1\s\src\libraries\System.Security.Cryptography\src\System.Security.Cryptography.csproj::TargetFramework=net9.0-windows]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Opened #105126
Reverted in #105128. @stephentoub Could you please resubmit? |
Apologies, that was my fault (for not reverting). |
No description provided.