diff --git a/src/SharpCompress/Archives/SevenZip/SevenZipArchive.Factory.cs b/src/SharpCompress/Archives/SevenZip/SevenZipArchive.Factory.cs index 2ae46c112..614c44088 100644 --- a/src/SharpCompress/Archives/SevenZip/SevenZipArchive.Factory.cs +++ b/src/SharpCompress/Archives/SevenZip/SevenZipArchive.Factory.cs @@ -195,7 +195,7 @@ CancellationToken cancellationToken var buffer = ArrayPool.Shared.Rent(6); try { - if (!await stream.ReadFullyAsync(buffer, cancellationToken).ConfigureAwait(false)) + if (!await stream.ReadFullyAsync(buffer, 0, 6, cancellationToken).ConfigureAwait(false)) { return false; }