Skip to content

Restrict method calls on dictionary receivers to an allow-list - #994

Draft
StefH wants to merge 5 commits into
masterfrom
stefh-dictionary-validation
Draft

StefH wants to merge 5 commits into
masterfrom
stefh-dictionary-validation

Conversation

@StefH

@StefH StefH commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

Fix: the dictionary branch now checks the method with a new PredefinedMethodsHelper.IsPredefinedDictionaryMethod, which allows only certain methods. Any other method throws a ParseException with "Method '...' on type '...' is not accessible."

StefH and others added 2 commits November 12, 2026 18:30
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@StefH StefH self-assigned this Nov 12, 2026
@StefH StefH added the security label Nov 12, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

1 participant