-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement better semantics for unverifiable code.
* verify.c (mono_method_verify_with_current_settings): Add extra param telling if the method should be treated as fulltrust regardless of verifier settings. The only implication of this is that fulltrust verification can't stop on the first unverifiable error like verifiable code can. This only impact unverifiable methods running on non standard verification setups. * mini.c (mini_method_verify): If the verifier is enabled and the method belongs to an assembly with a valid skip verification token (the UnverifiableCodeAttribute cattr) the code will be checked now for errors instead of simply been ignored. This patch gives --verify-all much more saner behavior for assemblies with unsafe code. Fixes #676054
- Loading branch information
Showing
3 changed files
with
9 additions
and
9 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