From 7832120300ff884552a61e77262ea7951319502b Mon Sep 17 00:00:00 2001 From: dumol Date: Mon, 9 Sep 2024 14:15:55 +0000 Subject: [PATCH] Fix CVE-2024-7592 for Python, take two. --- src/python/CVE-2024-7592.diff | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/python/CVE-2024-7592.diff b/src/python/CVE-2024-7592.diff index 245d12ac..07e64bea 100644 --- a/src/python/CVE-2024-7592.diff +++ b/src/python/CVE-2024-7592.diff @@ -1,7 +1,7 @@ -diff --git a/src/python/Python-2.7.18/Lib/Cookie.py b/src/python/Python-2.7.18/Lib/Cookie.py +diff --git a/Lib/Cookie.py b/Lib/Cookie.py index 10823637..a6ba4a92 100644 ---- a/src/python/Python-2.7.18/Lib/Cookie.py -+++ b/src/python/Python-2.7.18/Lib/Cookie.py +--- a/Lib/Cookie.py ++++ b/Lib/Cookie.py @@ -323,9 +323,13 @@ def _quote(str, LegalChars=_LegalChars, return '"' + _nulljoin( map(_Translator.get, str, str) ) + '"' # end _quote @@ -48,10 +48,10 @@ index 10823637..a6ba4a92 100644 # end _unquote # The _getdate() routine is used to set the expiration time in -diff --git a/src/python/Python-2.7.18/Lib/test/test_cookie.py b/src/python/Python-2.7.18/Lib/test/test_cookie.py +diff --git a/Lib/test/test_cookie.py b/Lib/test/test_cookie.py index 40419012..efd2ed3c 100644 ---- a/src/python/Python-2.7.18/Lib/test/test_cookie.py -+++ b/src/python/Python-2.7.18/Lib/test/test_cookie.py +--- a/Lib/test/test_cookie.py ++++ b/Lib/test/test_cookie.py @@ -1,6 +1,7 @@ # Simple test suite for Cookie.py