Add test and probable fix for Issue 617

This commit is contained in:
Adam Hathcock
2021-11-22 08:40:40 +00:00
parent a1e7c0068d
commit 05208ccd9b
4 changed files with 58 additions and 9 deletions

View File

@@ -51,11 +51,6 @@ namespace SharpCompress.Algorithms
/// <returns>The <see cref="uint"/>.</returns>
public static uint Calculate(uint adler, ReadOnlySpan<byte> buffer)
{
if (buffer.IsEmpty)
{
return SeedValue;
}
#if !NETSTANDARD2_0 && !NETSTANDARD2_1 && !NETFRAMEWORK
if (Sse3.IsSupported && buffer.Length >= MinBufferSize)
{