Add proper interpreter support for CEE_NEWARR with nint array lengths
Open
area-CodeGen-Interpreter-coreclr
- Dominant language
- C#
- Stars
- 18.3k
- Forks
- 5.6k
- PR merge metrics
- PR metrics pending
Description
Currently interpreter doesn't distinguish between CEE_NEWARR with int and nint lengths and generates IR opcodes that use int32 as length. In case the size is nint, it would use only the low 32 bits of the size and thus would not detect some cases when the index is larger than the max size limit.
Contributor guide
Assessment
This issue has not been assessed yet.