We're updating the issue view to help you get more done. 

InMemoryFileInfo.Length may not use Stream.Length if stream is not seekable

Description

The InMemoryFileInfo.Length property returns Stream.Length of the underlying stream, regardless of the stream supporting seeking or not, which may lead to an NotSupportedException.

Solution:
Stream.Length should only be evaluated if the Stream.CanSeek is true.

Assignee

Unassigned

Reporter

Manfred Gold

Labels

None

Time tracking

0m

Time remaining

1h

Components

Fix versions

Affects versions

Priority

Normal
Configure