Do not use `AllocateUninitializedArray` in private array pools. (#26338)
commit88ac3856eb0958f4e032e677493e99360a1ee500
authorVladimir Sadov <vsadov@microsoft.com>
Mon, 26 Aug 2019 02:14:06 +0000 (25 19:14 -0700)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Mon, 26 Aug 2019 23:24:57 +0000 (27 01:24 +0200)
tree3df73e3093b30ff0107bef67a45a689077a3dffa
parent82f618023fb06bd8df6f0276ac2e390cc4c7d069
Do not use `AllocateUninitializedArray` in private array pools. (#26338)

User may have extra expectations for the privatly owned array pools.
For example there could be an expectation that array never contains negative numbers (since user never puts them there). Uninitialized allocations can break such expectations.

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
netcore/System.Private.CoreLib/shared/System/Buffers/ConfigurableArrayPool.cs