Skip to content

JIT/Intrinsics/MemoryMarshalGetArrayDataReference from #72725 fails on Mono JIT #72745

@MichalPetryka

Description

@MichalPetryka

Description

A test introduced in #72725 shows that Mono JIT in some cases doesn't throw NRE on null array passed to MemoryMarshal.GetArrayDataReference.

Reproduction Steps

_ = MemoryMarshal.GetArrayDataReference<byte>(null);

Expected behavior

NullReferenceException.

Actual behavior

No exceptions.

Regression?

Works on CoreCLR.

Known Workarounds

Indirect calls to GetArrayDataReference via a function pointer do throw NRE.

Configuration

mono minijit Pri0 Runtime Tests Run OSX x64 release job.

Other information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions