Remove UnmanagedMemoryStream overflow checks. (dotnet/coreclr#11376)
authorIan Hays <ianha@microsoft.com>
Thu, 4 May 2017 22:01:16 +0000 (15:01 -0700)
committerJan Kotas <jkotas@microsoft.com>
Thu, 4 May 2017 22:01:16 +0000 (15:01 -0700)
commit74ebf8cf071bffe3858a72936c0380b50eada626
tree63ddd29084d638fe515e06431b8c1cd0015149a6
parent4699840cd98c801429a8b1b2ac79fbac8259a1f2
Remove UnmanagedMemoryStream overflow checks. (dotnet/coreclr#11376)

* Remove UnmanagedMemoryStream overflow checks.
* Catch negative UMS PositionPointers
* Switch UMS PositionPointer exception order

Commit migrated from https://github.com/dotnet/coreclr/commit/07efb266175e96ebf1c455d2524b410f26b7385e
src/coreclr/src/mscorlib/src/System/IO/UnmanagedMemoryStream.cs