dotnet / dotnet/runtime

Add proper interpreter support for CEE_NEWARR with nint array lengths

Open
#121,507 1 comment 0 reactions 1 assignee Claimed by @BrzVlad View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.