Skip to content
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

Disable CA2022 error #14680

Merged
merged 1 commit into from
Apr 7, 2024
Merged

Conversation

NikolaMilosavljevic
Copy link
Member

Fixes: #14668

Backport of a patch from: dotnet/installer#19145

Comment on lines +33 to +36
#pragma warning disable CA2022 // Avoid inexact read
inFile.Read(properties, 0, 5);
inFile.Read(fileLengthBytes, 0, 8);
#pragma warning restore CA2022
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mmitche do you know who owns SignCheck? I wonder if we should address the warning or suppress it.

@ViktorHofer ViktorHofer merged commit 9e3b333 into dotnet:main Apr 7, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CA2022 error in src/SignCheck/Microsoft.SignCheck/Verification/LZMAUtils.cs
2 participants