Mitigate potential case where allocated marshal data is aligned to th… (dotnet/corefx...
authorAaron Robinson <arobins@microsoft.com>
Wed, 9 Jan 2019 21:49:26 +0000 (13:49 -0800)
committerGitHub <noreply@github.com>
Wed, 9 Jan 2019 21:49:26 +0000 (13:49 -0800)
commit5fb97bec67e0cb247760a6a4c992177f3c349cfb
treee409e6d83549c08078eeb1830e3b46328900949f
parent0cd6157ffcfde42fce71802d792a9ce1618273fc
Mitigate potential case where allocated marshal data is aligned to th… (dotnet/corefx#34445)

* Mitigate potential case where allocated marshal data is aligned to the primitive being read.
 - Int16 and Int8.

Commit migrated from https://github.com/dotnet/corefx/commit/724acf974be58159518b9302197fa278dc90b194
src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/ReadWrite/ByteTests.cs
src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/ReadWrite/Int16Tests.cs