Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Protect against segfaults calling destroyed closures
This commit updates the drop glue generated for closures to simply ignore null pointers. The drop glue can be called in erroneous situations such as when a closure is invoked after it's been destroyed. In these cases we don't want to segfault and/or corrupt memory but instead let the normal error message from the invoke glue continue to get propagated. Closes #1526
- Loading branch information
1 parent
098b67d
commit 542076d
Showing
3 changed files
with
59 additions
and
4 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
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