-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix NRE in bulk memmove on x86 (#102171)
- Loading branch information
Showing
3 changed files
with
75 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 65 additions & 0 deletions
65
src/tests/JIT/Regression/JitBlue/Runtime_1102138/Runtime_102138.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using System.Runtime.CompilerServices; | ||
using Xunit; | ||
|
||
// Generated by Fuzzlyn v1.6 on 2024-05-12 19:09:35 | ||
// Run on X86 Windows | ||
// Seed: 9851999836185511275 | ||
// Reduced from 93.1 KiB to 0.8 KiB in 00:03:30 | ||
// Debug: Runs successfully | ||
// Release: Throws 'System.NullReferenceException' | ||
|
||
public class C0 | ||
{ | ||
} | ||
|
||
public struct S0 | ||
{ | ||
public C0 F0; | ||
public C0 F1; | ||
} | ||
|
||
public struct S1 | ||
{ | ||
public C0 F1; | ||
public S0 F2; | ||
public C0 F3; | ||
} | ||
|
||
public struct S2 | ||
{ | ||
public S1 F4; | ||
} | ||
|
||
public struct S3 | ||
{ | ||
public S2 F0; | ||
} | ||
|
||
public struct S5 | ||
{ | ||
public int F0; | ||
} | ||
|
||
public class Runtime_102138 | ||
{ | ||
public static S3 s_10; | ||
public static byte[] s_11; | ||
|
||
[Fact] | ||
public static int TestEntryPoint() | ||
{ | ||
var vr3 = new short[][][]{new short[][]{new short[]{0}}}; | ||
var vr8 = new S5(); | ||
s_10 = M8(vr8, ref s_11, vr3); | ||
return 100; | ||
} | ||
|
||
public static ref S3 M8(S5 argThis, ref byte[] arg0, short[][][] arg1) | ||
{ | ||
arg1[0] = new short[][]{new short[]{0}}; | ||
return ref s_10; | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
src/tests/JIT/Regression/JitBlue/Runtime_1102138/Runtime_102138.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<Optimize>True</Optimize> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Compile Include="$(MSBuildProjectName).cs" /> | ||
</ItemGroup> | ||
</Project> |