aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Gtk3
diff options
context:
space:
mode:
authorMarco Carvalho <marcolucio27@gmail.com>2024-06-02 17:16:48 -0300
committerGitHub <noreply@github.com>2024-06-02 22:16:48 +0200
commit888402ecaf76c0ead448baaf52abbb3d48bb4ae9 (patch)
treebc41d3cec1a0a9d3300c848c416863951b5c9fc9 /src/Ryujinx.Gtk3
parent971d24aef00666df5d97cd6b0fc32e292d32240b (diff)
Avoid inexact read with 'Stream.Read' (#6847)
Diffstat (limited to 'src/Ryujinx.Gtk3')
-rw-r--r--src/Ryujinx.Gtk3/UI/Windows/AvatarWindow.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Ryujinx.Gtk3/UI/Windows/AvatarWindow.cs b/src/Ryujinx.Gtk3/UI/Windows/AvatarWindow.cs
index 7cddc362..d9ecd47b 100644
--- a/src/Ryujinx.Gtk3/UI/Windows/AvatarWindow.cs
+++ b/src/Ryujinx.Gtk3/UI/Windows/AvatarWindow.cs
@@ -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;