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

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Zip/Compression/Streams/InflaterInputStream.cs

Lines changed: 2 additions & 1 deletion
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)