writing to too small buffer should throw an exception (dotnet/corefx#37661)
authorAdam Sitnik <adam.sitnik@gmail.com>
Wed, 19 Jun 2019 08:06:28 +0000 (10:06 +0200)
committerGitHub <noreply@github.com>
Wed, 19 Jun 2019 08:06:28 +0000 (10:06 +0200)
commitd4d2714cd93f847ab35734e7f1aaa9e209db3e00
tree4634f78cb0a71cf2736d93707892b93eab6bab84
parentf464b2f2bcefb5c9607663c578015bec71c7dec3
writing to too small buffer should throw an exception  (dotnet/corefx#37661)

fixes dotnet/corefx#35231

Commit migrated from https://github.com/dotnet/corefx/commit/721a570b005c53a839947603dcf76f8a3e5fc56a
src/libraries/System.Memory/src/System/Buffers/BuffersExtensions.cs
src/libraries/System.Memory/src/System/ThrowHelper.cs
src/libraries/System.Memory/tests/BuffersExtensions/BuffersExtensionsTests.cs