File matrix-synapse-older-pillow.patch of Package matrix-synapse

From f1def3146541b107fb18f2cdce21b385db4670a7 Mon Sep 17 00:00:00 2001
From: Oleg Girko <ol@infoserver.lv>
Date: Mon, 18 Sep 2023 18:14:32 +0100
Subject: [PATCH] Revert "Mandate Pillow>=10.0.1 because of libwebp CVE
 (#16347)"

It's not needed to update Pillow in Fedora because it has
no bundled libwebp.

Fedora has older version of Pillow, and it's OK because it's not
vulnerable to this bug.

This reverts commit 053155a2af52aa66910e4a22dad60109607b1098.
---
 pyproject.toml | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/pyproject.toml b/pyproject.toml
index 1a37f1cb17..cee5d323b5 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -181,9 +181,7 @@ PyYAML = ">=3.13"
 pyasn1 = ">=0.1.9"
 pyasn1-modules = ">=0.0.7"
 bcrypt = ">=3.1.7"
-# 10.0.1 minimum is mandatory here because of libwebp CVE-2023-4863.
-# Packagers that already took care of libwebp can lower that down to 5.4.0.
-Pillow = ">=10.0.1"
+Pillow = ">=5.4.0"
 # We use SortedDict.peekitem(), which was added in sortedcontainers 1.5.2.
 sortedcontainers = ">=1.5.2"
 pymacaroons = ">=0.13.0"
-- 
2.45.0