forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix x86 InlinedCallFrame popping during EH (dotnet#2215)
* Fix x86 InlinedCallFrame popping during EH There is a bug in InlinedCallFrame popping on x86 during EH with R2R compiled code. The code is popping this frame if it is at the top of the explicit frames stack before executing catch handler. But it is missing a check to see if the frame was actually in the unwound part of the stack. So in some corner cases, it can end up popping a frame that belongs to an active pinvoke somewhere up the call chain. The fix is to do the popping only if the InlinedCallFrame is located at an address smaller than the ESP of the caller of the method that contains the exception handler. * Fix typos in a comment close to my change * Remove workaround for the original issue
- Loading branch information
Showing
2 changed files
with
34 additions
and
21 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
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