diff options
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-pillow/CVE-2023-50447-1.patch')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-pillow/CVE-2023-50447-1.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pillow/CVE-2023-50447-1.patch b/meta-python/recipes-devtools/python/python3-pillow/CVE-2023-50447-1.patch new file mode 100644 index 0000000000..7de12be5d5 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pillow/CVE-2023-50447-1.patch | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | From 3652f431c2d8b9c10bf20b70f284d300d12e814a | ||
| 2 | From: Andrew Murray <radarhere@users.noreply.github.com> | ||
| 3 | Date: Sat Oct 28 14:22:39 2023 +1100 | ||
| 4 | Subject: [PATCH] python3-pillow: Simplified code | ||
| 5 | |||
| 6 | CVE: CVE-2023-50447 | ||
| 7 | |||
| 8 | Upstream-Status: Backport [https://github.com/python-pillow/Pillow/commit/3652f431c2d8b9c10bf20b70f284d300d12e814a] | ||
| 9 | |||
| 10 | Signed-off-by: Rahul Janani Pandi <RahulJanani.Pandi@windriver.com> | ||
| 11 | --- | ||
| 12 | src/PIL/ImageMath.py | 2 +- | ||
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 14 | |||
| 15 | diff --git a/src/PIL/ImageMath.py b/src/PIL/ImageMath.py | ||
| 16 | index ac7d36b69..71872a3fb 100644 | ||
| 17 | --- a/src/PIL/ImageMath.py | ||
| 18 | +++ b/src/PIL/ImageMath.py | ||
| 19 | @@ -239,7 +239,7 @@ def eval(expression, _dict={}, **kw): | ||
| 20 | args = ops.copy() | ||
| 21 | args.update(_dict) | ||
| 22 | args.update(kw) | ||
| 23 | - for k, v in list(args.items()): | ||
| 24 | + for k, v in args.items(): | ||
| 25 | if hasattr(v, "im"): | ||
| 26 | args[k] = _Operand(v) | ||
| 27 | |||
| 28 | -- | ||
| 29 | 2.40.0 | ||
