Skip to content

Commit 369e1b7

Browse files
committed
since the stream is not seek-able, access to Length should return exception
1 parent 9478d50 commit 369e1b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/Zip/Compression/Streams/InflaterInputStream.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,8 @@ public override bool CanWrite {
549549
/// </summary>
550550
public override long Length {
551551
get {
552-
return inputBuffer.RawLength;
552+
//return inputBuffer.RawLength;
553+
throw new NotSupportedException("InflaterInputStream Length is not supported");
553554
}
554555
}
555556

0 commit comments

Comments
 (0)