You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SharpZipLib fails to process a tar file that contains duplicate extended headers. Other tar programs (e.g. tar, 7-zip, SharpCompress) appear to handle this fine.
An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at ICSharpCode.SharpZipLib.Tar.TarExtendedHeaderReader.Read(Byte[] buffer, Int32 length) at ICSharpCode.SharpZipLib.Tar.TarInputStream.GetNextEntry() at ICSharpCode.SharpZipLib.Tar.TarArchive.ListContents()
Version of SharpZipLib
1.2.0
Obtained from (only keep the relevant lines)
Package installed using NuGet
The text was updated successfully, but these errors were encountered:
Looks like TarExtendedHeaderReader treats every newline as the end of a header, and goes wrong if the value of a header itself contains a newline, rather than just taking the amount of data specified by the length field?
SharpZipLib fails to process a tar file that contains duplicate extended headers. Other tar programs (e.g. tar, 7-zip, SharpCompress) appear to handle this fine.
Steps to reproduce
Actual behavior
Version of SharpZipLib
1.2.0
Obtained from (only keep the relevant lines)
The text was updated successfully, but these errors were encountered: