The conditional check from lines 65 to 69 of SharpCompress.Common.Tar.Headers.TarHeader will always result in an ArgumentOutOfRangeException on line 67.
The signature is of substring is String.Substring(int startIndex, int length), but this line uses the length of the Name property as the length argument, instead of the difference between length and the start index.
Didn't think this needed it's own fork/merge because it's a one-liner, but I don't know if this usage appears anywhere else.
The conditional check from lines 65 to 69 of
SharpCompress.Common.Tar.Headers.TarHeader
will always result in an ArgumentOutOfRangeException on line 67.The signature is of substring is
String.Substring(int startIndex, int length)
, but this line uses the length of the Name property as the length argument, instead of the difference between length and the start index.Didn't think this needed it's own fork/merge because it's a one-liner, but I don't know if this usage appears anywhere else.