-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove error on reads over MemoryStream's size.
This makes MemoryStream consistent with FileStream for reads beyond the maximum size. This is needed for the MemoryStream to be compatible with all image file formats. In particular, the JPEG library reads beyond the specified maximum buffer size. Previously, this meant that a JPEG could not easily be deserialized from a MemoryStream.
- Loading branch information
Showing
2 changed files
with
31 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters