mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-03 21:23:38 +00:00
Reading from 7z entry stream using Read(Span<byte>) might read too many bytes
#495
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Molinarius on GitHub (Feb 11, 2022).
With .NET 5 and .NET 6, I noticed that reading from an entry stream from certain 7z file reads too many bytes when the
Read(Span<byte>)overload is used.E.g.:
With the sample 7z file attached (I had to put it into a zip file test.zip to be able to upload it), this reads 18 bytes instead of the expected 12 bytes. The
Read(byte[], int, int)overload works for me as expected.Using version 0.30.1 from NuGet.