Fix AaruFormat's DDT verification when its size on-image is bigger than 1MiB. Fixes #726

This commit is contained in:
2022-04-13 13:40:51 +01:00
parent 7ebc3b245b
commit e803ae4519

View File

@@ -151,7 +151,7 @@ public sealed partial class AaruFormat
while(readBytes + verifySize < ddtHeader.cmpLength)
{
verifyBytes = new byte[readBytes];
verifyBytes = new byte[verifySize];
_imageStream.Read(verifyBytes, 0, verifyBytes.Length);
crcVerify.Update(verifyBytes);
readBytes += (ulong)verifyBytes.LongLength;