Avoid inexact read with 'Stream.Read' (#6847)

This commit is contained in:
Marco Carvalho 2024-06-02 17:16:48 -03:00 committed by GitHub
parent 971d24aef0
commit 888402ecaf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 8 additions and 8 deletions

View file

@ -151,7 +151,7 @@ namespace Ryujinx.Ava.UI.ViewModels
reader.ReadInt64(); // Padding
byte[] input = new byte[stream.Length - stream.Position];
stream.Read(input, 0, input.Length);
stream.ReadExactly(input, 0, input.Length);
uint inputOffset = 0;