mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-08-11 12:47:51 +02:00
Avoid inexact read with 'Stream.Read' (#6847)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user