Skip to content

Fix NRE in XamlLoadPermission.FromXml for element without class attribute #214

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

hughbe
Copy link
Contributor

@hughbe hughbe commented Dec 26, 2018

Fixes #213

@@ -17,6 +17,12 @@ public sealed class XamlLoadPermission : CodeAccessPermission, IUnrestrictedPerm
private static IList<XamlAccessLevel> s_emptyAccessLevel;
private bool _isUnrestricted;

private const string IPermissionTagName = "IPermission";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should all this CAS stuff be reduced to stubs, as we don't support CAS on .NET Core?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure. Probably not something for this PR, opened #241

@hughbe hughbe mentioned this pull request Jan 7, 2019
@stevenbrix stevenbrix added this to the 3.0 milestone Apr 4, 2019
@stevenbrix stevenbrix added the * NO MERGE * metadata: The PR is not ready for merge yet (see discussion for detailed reasons) label Apr 4, 2019
@stevenbrix
Copy link
Contributor

Thanks @hughbe! Same situation applies here as the other PR's you've made, let's hold on this until we have better testing and we can add the test cases that you've used to validate your fix.

@rladuca rladuca modified the milestones: 3.0, Future May 20, 2019
@grubioe grubioe added the PR metadata: Label to tag PRs, to facilitate with triage label May 28, 2019
@hughbe hughbe closed this Jun 26, 2019
@ghost ghost locked as resolved and limited conversation to collaborators Apr 18, 2022
@hughbe hughbe deleted the xamlloadpermission-fixnre branch August 10, 2023 20:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
* NO MERGE * metadata: The PR is not ready for merge yet (see discussion for detailed reasons) PR metadata: Label to tag PRs, to facilitate with triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

XamlLoadPermission.FromXml for element without class attribute throws NRE
5 participants