Detect integer overflow in String.Replace
authorJan Kotas <jkotas@microsoft.com>
Wed, 31 Oct 2018 20:43:20 +0000 (13:43 -0700)
committerJan Kotas <jkotas@microsoft.com>
Thu, 1 Nov 2018 00:36:56 +0000 (17:36 -0700)
commit880aaf0d33b9c1b4c9a276f091a8be7f97226be3
tree7537d28a378e8e808d0647eea0d01d3877c2e4d8
parent00fde1796ebd9c40ea58dd95b03d7c939385ac72
Detect integer overflow in String.Replace

Fixes dotnet/coreclr#20719

Commit migrated from https://github.com/dotnet/coreclr/commit/8aa5101cea45183e882326f465007909d1b862a0
src/libraries/System.Private.CoreLib/src/System/Text/StringBuilder.cs