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

Avoid inexact read with 'Stream.Read' #6847

Merged
merged 1 commit into from
Jun 2, 2024

Conversation

marco-carvalho
Copy link
Contributor

https://github.com/dotnet/roslyn-analyzers/blob/main/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.md#ca2022-avoid-inexact-read-with-streamread

A call to 'Stream.Read' may return fewer bytes than requested, resulting in unreliable code if the return value is not checked.

@github-actions github-actions bot added cpu Related to ARMeilleure gpu Related to Ryujinx.Graphics gui Related to Ryujinx.Ui labels May 22, 2024
Copy link
Member

@gdkchan gdkchan left a comment

Choose a reason for hiding this comment

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

lgtm, thanks.

@AcK77 AcK77 merged commit 888402e into Ryujinx:master Jun 2, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cpu Related to ARMeilleure gpu Related to Ryujinx.Graphics gui Related to Ryujinx.Ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants