mirror of
https://github.com/Ryubing/Ryujinx.git
synced 2025-11-25 21:32:23 -05:00
Avoid inexact read with 'Stream.Read' (#6847)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user