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

CA2022 error in src/SignCheck/Microsoft.SignCheck/Verification/LZMAUtils.cs #14668

Closed
NikolaMilosavljevic opened this issue Mar 29, 2024 · 0 comments · Fixed by #14680
Closed

Comments

@NikolaMilosavljevic
Copy link
Member

New SDK introduces new warnings that turn into errors in VMR build - see dotnet/installer#19145 (comment)

2024-03-29T15:39:18.7396692Z     /vmr/src/arcade/src/SignCheck/Microsoft.SignCheck/Verification/LZMAUtils.cs(33,17): error CA2022: Avoid inexact read with 'System.IO.FileStream.Read(byte[], int, int)' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2022) [/vmr/src/arcade/src/SignCheck/Microsoft.SignCheck/Microsoft.DotNet.SignCheckLibrary.csproj]
2024-03-29T15:39:18.7397953Z     /vmr/src/arcade/src/SignCheck/Microsoft.SignCheck/Verification/LZMAUtils.cs(34,17): error CA2022: Avoid inexact read with 'System.IO.FileStream.Read(byte[], int, int)' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2022) [/vmr/src/arcade/src/SignCheck/Microsoft.SignCheck/Microsoft.DotNet.SignCheckLibrary.csproj]

I'm going to patch to disable this warning, in VMR builds. However this needs to be properly fixed.

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 a pull request may close this issue.

1 participant