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

Restricted environment keys for ImageMath.eval() #7655

Merged
merged 3 commits into from Dec 29, 2023

Conversation

radarhere
Copy link
Member

@radarhere radarhere commented Dec 29, 2023

Prevent environment keys matching the names of builtins and keys containing double underscores from being passed to ImageMath.eval(), by raising a ValueError.

@radarhere radarhere changed the title Restricted environment keys for ImageMath.eval Restricted environment keys for ImageMath.eval() Dec 29, 2023
@radarhere radarhere merged commit 02c6183 into python-pillow:main Dec 29, 2023
57 checks passed
@radarhere radarhere deleted the imagemath_eval_keys branch December 29, 2023 23:24
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.

None yet

2 participants