-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change exception for overflow in ArrayBufferWriter (#32587)
* Fix #609 - Part 2 We throw a OutOfMemoryException instead of "Arithmetic operation resulted in an overflow" * Test attributes. We don't need to limit to 64bit process, since the memory is never allocated. * Remove platform restriction * Explicitly throw the OutOfMemoryException instead of rely on Array.Resize * Move ThrowOutOfMemoryException method * Missing message, BufferMaximumSizeExceeded * Code Coverage * Resource file * Missing Resx update * Restrict test to 64bits environment * Simple test so that we have some test coverage in inner loop Since we are trying to avoid the OOM, don't run the GetMemory_ExceedMaximumBufferSize on Linux * Test comment * Move OutOfMemory test to byte specific test
- Loading branch information
1 parent
25fdaa8
commit ab3d9ae
Showing
6 changed files
with
54 additions
and
6 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
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
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