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
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 text was updated successfully, but these errors were encountered:
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 text was updated successfully, but these errors were encountered: