File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -92,6 +92,14 @@ Deprecated Use instead
9292 :py:data: `sys.version_info `, and ``PIL.__version__ ``
9393============================================ ====================================================
9494
95+ ImageMath eval()
96+ ^^^^^^^^^^^^^^^^
97+
98+ .. deprecated :: 10.3.0
99+
100+ ``ImageMath.eval() `` has been deprecated. Use :py:meth: `~PIL.ImageMath.lambda_eval ` or
101+ :py:meth: `~PIL.ImageMath.unsafe_eval ` instead.
102+
95103Removed features
96104----------------
97105
Original file line number Diff line number Diff line change 44Security
55========
66
7- TODO
8- ^^^^
7+ ImageMath eval()
8+ ^^^^^^^^^^^^^^^^
99
10- TODO
10+ .. danger ::
11+ ``ImageMath.eval() `` uses Python's ``eval() `` function to process the expression
12+ string, and carries the security risks of doing so. A direct replacement for this is
13+ the new :py:meth: `~PIL.ImageMath.unsafe_eval `, but that carries the same risks. It is
14+ not recommended to process expressions without considering this.
15+ :py:meth: `~PIL.ImageMath.lambda_eval ` is a more secure alternative.
1116
1217:cve: `YYYY-XXXXX `: TODO
1318^^^^^^^^^^^^^^^^^^^^^^^
@@ -58,6 +63,13 @@ Deprecated Use instead
5863 :py:data: `sys.version_info `, and ``PIL.__version__ ``
5964============================================ ====================================================
6065
66+ ImageMath.eval()
67+ ^^^^^^^^^^^^^^^^
68+
69+ ``ImageMath.eval() `` has been deprecated. Use :py:meth: `~PIL.ImageMath.lambda_eval ` or
70+ :py:meth: `~PIL.ImageMath.unsafe_eval ` instead. See earlier security notes for more
71+ information.
72+
6173API Changes
6274===========
6375
You can’t perform that action at this time.
0 commit comments