mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Use Stream extension to ensure read operations return the requested number of bytes (unless EOF arrives first).
This commit is contained in:
@@ -48,7 +48,7 @@ public sealed partial class DiskCopy42
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
var buffer = new byte[0x58];
|
||||
var pString = new byte[64];
|
||||
stream.Read(buffer, 0, 0x58);
|
||||
stream.EnsureRead(buffer, 0, 0x58);
|
||||
|
||||
// Incorrect pascal string length, not DC42
|
||||
if(buffer[0] > 63)
|
||||
|
||||
Reference in New Issue
Block a user