Skip to content

Add proper interpreter support for CEE_NEWARR with nint array lengths #121507

@janvorli

Description

@janvorli

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions