diff options
Diffstat (limited to 'meta/recipes-devtools/python/python3-zipp/0002-Employ-SanitizedNames-in-CompleteDirs.-Fixes-broken-.patch')
| -rw-r--r-- | meta/recipes-devtools/python/python3-zipp/0002-Employ-SanitizedNames-in-CompleteDirs.-Fixes-broken-.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3-zipp/0002-Employ-SanitizedNames-in-CompleteDirs.-Fixes-broken-.patch b/meta/recipes-devtools/python/python3-zipp/0002-Employ-SanitizedNames-in-CompleteDirs.-Fixes-broken-.patch new file mode 100644 index 0000000000..d2ea4d49a1 --- /dev/null +++ b/meta/recipes-devtools/python/python3-zipp/0002-Employ-SanitizedNames-in-CompleteDirs.-Fixes-broken-.patch | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | From 8b09dbf95b3ba78a63f220941e31ac92f4ad192c Mon Sep 17 00:00:00 2001 | ||
| 2 | From: "Jason R. Coombs" <jaraco@jaraco.com> | ||
| 3 | Date: Wed, 27 Nov 2024 23:31:57 -0800 | ||
| 4 | Subject: [PATCH 2/5] Employ SanitizedNames in CompleteDirs. Fixes broken test. | ||
| 5 | |||
| 6 | Upstream-Status: Backport [https://github.com/jaraco/zipp/commit/58115d2be968644ce71ce6bcc9b79826c82a1806] | ||
| 7 | Remove test code | ||
| 8 | Rebase to v3.7.0 | ||
| 9 | CVE: CVE-2024-5569 | ||
| 10 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
| 11 | --- | ||
| 12 | zipp.py | 2 +- | ||
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 14 | |||
| 15 | diff --git a/zipp.py b/zipp.py | ||
| 16 | index 8f0950f..29d2572 100644 | ||
| 17 | --- a/zipp.py | ||
| 18 | +++ b/zipp.py | ||
| 19 | @@ -130,7 +130,7 @@ class SanitizedNames: | ||
| 20 | return joined + '/' * name.endswith('/') | ||
| 21 | |||
| 22 | |||
| 23 | -class CompleteDirs(zipfile.ZipFile): | ||
| 24 | +class CompleteDirs(SanitizedNames, zipfile.ZipFile): | ||
| 25 | """ | ||
| 26 | A ZipFile subclass that ensures that implied directories | ||
| 27 | are always included in the namelist. | ||
| 28 | -- | ||
| 29 | 2.25.1 | ||
| 30 | |||
