-
Notifications
You must be signed in to change notification settings - Fork 6k
Description
Handling corrupting exceptions is not supported .NET Core
Version introduced
.NET Core 1.0
Old behavior
Exceptions corrupting process state could be caught and handled by managed exception handlers (e.g. try/catch in C#).
New behavior
Corrupted process state exceptions cannot be handled by managed code.
Reason for change
Handling of corrupting exceptions is insecure and impossible to do with high reliably in managed code.
Recommended action
Avoid need for handling corrupting exceptions by addressing the situations that leads to them instead. If it is absolutely required to handle corrupting exceptions, the handler should be written in C/C++.
Category
- Core
Affected APIs
HandleProcessCorruptedStateExceptionsAttribute is ignored https://docs.microsoft.com/en-us/dotnet/api/system.runtime.exceptionservices.handleprocesscorruptedstateexceptionsattribute?view=netframework-4.8
configuration element https://docs.microsoft.com/en-us/dotnet/framework/configure-apps/file-schema/runtime/legacycorruptedstateexceptionspolicy-element
Issue metadata
- Issue type: breaking-change