-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Fix Windows 8 detection. #58736
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
Fix Windows 8 detection. #58736
Conversation
Windows 8's actual version is 6.2, not 8. The test would succeed only on Windows 10+.
|
I also noticed in the same file some spans being pinned without |
|
Is there a policy that requires |
|
@KalleOlaviNiemitalo I have seen it being used almost always when pinning spans within the BCL. |
There's no policy one way or the other. Pinning with: fixed (byte* ptr = &MemoryMarshal.GetReference(span))is ever so slightly more efficient than with: fixed (byte* ptr = span)as the latter ends up using |
vcsjones
left a comment
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.
This looks good to me. Thanks for the fix.
|
How feasible would it be to get this in 6.0, @stephentoub / @dotnet/area-system-security? The impact on this is basically Windows 8.0 will use a much slower Windows 7 API for the PBKDF2 one-shot. |
...m.Security.Cryptography.Algorithms/src/Internal/Cryptography/Pbkdf2Implementation.Windows.cs
Outdated
Show resolved
Hide resolved
|
While this doesn't directly align with any of our RC2 bar criteria, I support presenting it to tactics. After it's merged into RC2, let's backport it to |
Co-authored-by: Jeff Handley <[email protected]>
09413a2 to
13fbffb
Compare
|
I also support bringing this to tactics. Low-risk, good test coverage, etc. |
|
/backport to release/6.0 |
|
Started backporting to release/6.0: https://github.com/dotnet/runtime/actions/runs/1214551203 |
|
Thanks for finding and fixing this, @teo-tsirpanis! |
Windows 8's actual version is 6.2, not 8. The test would succeed only on Windows 10+.