Skip to content

Resolve OverflowException in command line handling

https://sentry.io/organizations/w3d-hub/issues/1879821153/

This appears to be caused by pointers with the top bit set and is essentially a subtle implementation error in the .NET framework itself, whereby IntPtr cannot represent the full range of available pointers in a 64 bit operating system.

See https://github.com/dotnet/runtime/issues/5482, and one potential workaround from another project https://github.com/manu-st/corefx/commit/6414ef7a29ee0a01d543e361a7f97fc2bf2aaf68

No reproduction steps available as it depends on pointer values