mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-05-21 20:55:49 +00:00
Avoid inexact read with 'Stream.Read' (#6847)
This commit is contained in:
@@ -233,7 +233,7 @@ namespace Ryujinx.UI.Windows
|
||||
reader.ReadInt64(); // Padding
|
||||
|
||||
byte[] input = new byte[stream.Length - stream.Position];
|
||||
stream.Read(input, 0, input.Length);
|
||||
stream.ReadExactly(input, 0, input.Length);
|
||||
|
||||
long inputOffset = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user