Skip to content
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

Sandboxing for expression evaluation #45

Merged
merged 4 commits into from
Jul 9, 2024
Merged

Sandboxing for expression evaluation #45

merged 4 commits into from
Jul 9, 2024

Conversation

stephenfreund
Copy link
Contributor

Function calls in expressions are wrapped in a test for whether they appear in a white list. The whitelist enumerates either full modules or specific functions using regular expressions in a text file. There is a new option to use a different file. Right now it includes the modules necessary for all of our tests (I think), plus all the built ins except eval and exec.

@stephenfreund stephenfreund merged commit 33825ab into main Jul 9, 2024
10 checks passed
@nicovank nicovank deleted the sandbox branch August 19, 2024 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants