JIT: Fix initblk/cpblk and STORE_DYN_BLK size mismatch (#78930)
authorJakob Botsch Nielsen <Jakob.botsch.nielsen@gmail.com>
Wed, 30 Nov 2022 09:59:21 +0000 (10:59 +0100)
committerGitHub <noreply@github.com>
Wed, 30 Nov 2022 09:59:21 +0000 (10:59 +0100)
commitbecfc23bfe74751bdf4b08bc7871339b1c8ce39b
tree36c36513724fc2810b11871b0886b20186e3bd42
parent8f543a192557b01efb1c9a3258c8195d845c34e0
JIT: Fix initblk/cpblk and STORE_DYN_BLK size mismatch (#78930)

STORE_DYN_BLK turns into a call to JIT_MemSet/JIT_MemCpy that go quite
directly to memset/memcpy, so the size is actually a native uint. This
can cause problems since the JIT does not make any normalization
guarantees above 32 bits.

Fix #78912
src/coreclr/jit/codegencommon.cpp
src/coreclr/jit/codegenlinear.cpp
src/coreclr/jit/gtlist.h
src/coreclr/jit/importer.cpp
src/coreclr/jit/morphblock.cpp