Skip to content
This repository was archived by the owner on Nov 1, 2020. It is now read-only.
This repository was archived by the owner on Nov 1, 2020. It is now read-only.

Null StringBuilder marshalling #2959

@MichalStrehovsky

Description

@MichalStrehovsky
using System;

internal class Program
{
    private static void Main(string[] args)
    {
        Console.WriteLine(DateTime.Now);
    }
}

Above code will fail with this stack because StringBuilder is null.

 	reproNative.exe!System_Private_CoreLib_Internal_Runtime_CompilerHelpers_InteropHelpers__GetEmptyStringBuilderBuffer() Line 67	Unknown
 	reproNative.exe!System_Private_CoreLib_Interop_mincore__GetFileMUIPath�()	Unknown
>	reproNative.exe!System_Private_CoreLib_System_TimeZoneInfo__TryGetLocalizedNameByMuiNativeResource() Line 875	Unknown
 	reproNative.exe!System_Private_CoreLib_System_TimeZoneInfo__TryGetLocalizedNamesByRegistryKey() Line 949	Unknown
 	reproNative.exe!System_Private_CoreLib_System_TimeZoneInfo__TryGetTimeZoneByRegistryKey() Line 1054	Unknown
 	reproNative.exe!System_Private_CoreLib_System_TimeZoneInfo__TryGetTimeZone_0() Line 1128	Unknown
 	reproNative.exe!System_Private_CoreLib_System_TimeZoneInfo__GetLocalTimeZone() Line 291	Unknown
 	reproNative.exe!System_Private_CoreLib_System_TimeZoneInfo_CachedData__CreateLocal() Line 92	Unknown
 	reproNative.exe!System_Private_CoreLib_System_TimeZoneInfo_CachedData__get_Local() Line 119	Unknown
 	reproNative.exe!System_Private_CoreLib_System_TimeZoneInfo__get_Local() Line 1050	Unknown
 	reproNative.exe!System_Private_CoreLib_System_TimeZoneInfo__GetDateTimeNowUtcOffsetFromUtc() Line 1703	Unknown
 	reproNative.exe!System_Private_CoreLib_System_DateTime__get_Now() Line 840	Unknown
 	reproNative.exe!repro_Program__Main() Line 11	Unknown

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions