You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of creating a new Pointer object which wraps the value 0xdeadbeef (as would occur if I were trying to return a void* rather than out a void*), the runtime appears to be trying to read 0xdeadbeef as an object reference or some other legal address. This is incorrect: the runtime should treat this as an opaque value rather than a reference to legitimate data.
Similar to #7430, but I think it's a different underlying issue since the reflection stack is trying to set an element on the return.
Note that this doesn't work on .NET Framework either. But in the case of .NET Framework, it triggers an MDA:
Managed Debugging Assistant 'FatalExecutionEngineError' : 'The runtime has encountered a fatal error. The address of the error was at 0xacab4158, on thread 0x53e0. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack.'
The text was updated successfully, but these errors were encountered:
Minimum repro (compile with /unsafe+):
Stack trace:
Disasm:
Instead of creating a new
Pointer
object which wraps the value0xdeadbeef
(as would occur if I were trying to return a void* rather than out a void*), the runtime appears to be trying to read0xdeadbeef
as an object reference or some other legal address. This is incorrect: the runtime should treat this as an opaque value rather than a reference to legitimate data.Similar to #7430, but I think it's a different underlying issue since the reflection stack is trying to set an element on the return.
Note that this doesn't work on .NET Framework either. But in the case of .NET Framework, it triggers an MDA:
The text was updated successfully, but these errors were encountered: