aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Gpu/Shader/DiskCache/BinarySerializer.cs
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.Graphics.Gpu/Shader/DiskCache/BinarySerializer.cs
parent971d24aef00666df5d97cd6b0fc32e292d32240b (diff)
Avoid inexact read with 'Stream.Read' (#6847)
Diffstat (limited to 'src/Ryujinx.Graphics.Gpu/Shader/DiskCache/BinarySerializer.cs')
-rw-r--r--src/Ryujinx.Graphics.Gpu/Shader/DiskCache/BinarySerializer.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Ryujinx.Graphics.Gpu/Shader/DiskCache/BinarySerializer.cs b/src/Ryujinx.Graphics.Gpu/Shader/DiskCache/BinarySerializer.cs
index ab4508f6..3837092c 100644
--- a/src/Ryujinx.Graphics.Gpu/Shader/DiskCache/BinarySerializer.cs
+++ b/src/Ryujinx.Graphics.Gpu/Shader/DiskCache/BinarySerializer.cs
@@ -195,7 +195,7 @@ namespace Ryujinx.Graphics.Gpu.Shader.DiskCache
switch (algorithm)
{
case CompressionAlgorithm.None:
- stream.Read(data);
+ stream.ReadExactly(data);
break;
case CompressionAlgorithm.Deflate:
stream = new DeflateStream(stream, CompressionMode.Decompress, true);