Update to Python 3.9.25
Resolves: RHEL-128538
This commit is contained in:
parent
a45e3b72ea
commit
3b17b4d407
@ -1,8 +1,8 @@
|
|||||||
From 8b70605b594b3831331a9340ba764ff751871612 Mon Sep 17 00:00:00 2001
|
From fc3e5ff91495aaf9905bd38ac61db0c3279d17e0 Mon Sep 17 00:00:00 2001
|
||||||
From: Petr Viktorin <encukou@gmail.com>
|
From: Petr Viktorin <encukou@gmail.com>
|
||||||
Date: Mon, 6 Mar 2023 17:24:24 +0100
|
Date: Fri, 21 Nov 2025 14:30:02 +0100
|
||||||
Subject: [PATCH 2/2] CVE-2007-4559, PEP-706: Add filters for tarfile
|
Subject: [PATCH] CVE-2007-4559, PEP-706: Add filters for tarfile extraction
|
||||||
extraction (downstream)
|
(downstream)
|
||||||
|
|
||||||
Add and test RHEL-specific ways of configuring the default behavior: environment
|
Add and test RHEL-specific ways of configuring the default behavior: environment
|
||||||
variable and config file.
|
variable and config file.
|
||||||
@ -13,7 +13,7 @@ variable and config file.
|
|||||||
3 files changed, 169 insertions(+), 4 deletions(-)
|
3 files changed, 169 insertions(+), 4 deletions(-)
|
||||||
|
|
||||||
diff --git a/Lib/tarfile.py b/Lib/tarfile.py
|
diff --git a/Lib/tarfile.py b/Lib/tarfile.py
|
||||||
index b6ad7dbe2a4..dc7050b2c63 100755
|
index 209c206..fa3f922 100755
|
||||||
--- a/Lib/tarfile.py
|
--- a/Lib/tarfile.py
|
||||||
+++ b/Lib/tarfile.py
|
+++ b/Lib/tarfile.py
|
||||||
@@ -72,6 +72,13 @@ __all__ = ["TarFile", "TarInfo", "is_tarfile", "TarError", "ReadError",
|
@@ -72,6 +72,13 @@ __all__ = ["TarFile", "TarInfo", "is_tarfile", "TarError", "ReadError",
|
||||||
@ -30,7 +30,7 @@ index b6ad7dbe2a4..dc7050b2c63 100755
|
|||||||
|
|
||||||
#---------------------------------------------------------
|
#---------------------------------------------------------
|
||||||
# tar constants
|
# tar constants
|
||||||
@@ -2197,6 +2204,41 @@ class TarFile(object):
|
@@ -2253,6 +2260,41 @@ class TarFile(object):
|
||||||
if filter is None:
|
if filter is None:
|
||||||
filter = self.extraction_filter
|
filter = self.extraction_filter
|
||||||
if filter is None:
|
if filter is None:
|
||||||
@ -73,7 +73,7 @@ index b6ad7dbe2a4..dc7050b2c63 100755
|
|||||||
if isinstance(filter, str):
|
if isinstance(filter, str):
|
||||||
raise TypeError(
|
raise TypeError(
|
||||||
diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py
|
diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py
|
||||||
index 9041e7aa368..1eb1116cc10 100644
|
index 9041e7a..1eb1116 100644
|
||||||
--- a/Lib/test/test_shutil.py
|
--- a/Lib/test/test_shutil.py
|
||||||
+++ b/Lib/test/test_shutil.py
|
+++ b/Lib/test/test_shutil.py
|
||||||
@@ -1613,7 +1613,8 @@ class TestArchives(BaseTest, unittest.TestCase):
|
@@ -1613,7 +1613,8 @@ class TestArchives(BaseTest, unittest.TestCase):
|
||||||
@ -87,10 +87,10 @@ index 9041e7aa368..1eb1116cc10 100644
|
|||||||
|
|
||||||
def test_unpack_archive_tar(self):
|
def test_unpack_archive_tar(self):
|
||||||
diff --git a/Lib/test/test_tarfile.py b/Lib/test/test_tarfile.py
|
diff --git a/Lib/test/test_tarfile.py b/Lib/test/test_tarfile.py
|
||||||
index a66f7efd2d6..6fd3c384b5c 100644
|
index 17d2239..8b9aea2 100644
|
||||||
--- a/Lib/test/test_tarfile.py
|
--- a/Lib/test/test_tarfile.py
|
||||||
+++ b/Lib/test/test_tarfile.py
|
+++ b/Lib/test/test_tarfile.py
|
||||||
@@ -2,7 +2,7 @@ import sys
|
@@ -3,7 +3,7 @@ import sys
|
||||||
import os
|
import os
|
||||||
import io
|
import io
|
||||||
from hashlib import sha256
|
from hashlib import sha256
|
||||||
@ -99,7 +99,7 @@ index a66f7efd2d6..6fd3c384b5c 100644
|
|||||||
from random import Random
|
from random import Random
|
||||||
import pathlib
|
import pathlib
|
||||||
import shutil
|
import shutil
|
||||||
@@ -2929,7 +2929,11 @@ class NoneInfoExtractTests(ReadTest):
|
@@ -2999,7 +2999,11 @@ class NoneInfoExtractTests(ReadTest):
|
||||||
tar = tarfile.open(tarname, mode='r', encoding="iso8859-1")
|
tar = tarfile.open(tarname, mode='r', encoding="iso8859-1")
|
||||||
cls.control_dir = pathlib.Path(TEMPDIR) / "extractall_ctrl"
|
cls.control_dir = pathlib.Path(TEMPDIR) / "extractall_ctrl"
|
||||||
tar.errorlevel = 0
|
tar.errorlevel = 0
|
||||||
@ -112,7 +112,7 @@ index a66f7efd2d6..6fd3c384b5c 100644
|
|||||||
tar.close()
|
tar.close()
|
||||||
cls.control_paths = set(
|
cls.control_paths = set(
|
||||||
p.relative_to(cls.control_dir)
|
p.relative_to(cls.control_dir)
|
||||||
@@ -3592,7 +3596,8 @@ class TestExtractionFilters(unittest.TestCase):
|
@@ -4065,7 +4069,8 @@ class TestExtractionFilters(unittest.TestCase):
|
||||||
"""Ensure the default filter does not warn (like in 3.12)"""
|
"""Ensure the default filter does not warn (like in 3.12)"""
|
||||||
with ArchiveMaker() as arc:
|
with ArchiveMaker() as arc:
|
||||||
arc.add('foo')
|
arc.add('foo')
|
||||||
@ -122,8 +122,8 @@ index a66f7efd2d6..6fd3c384b5c 100644
|
|||||||
with self.check_context(arc.open(), None):
|
with self.check_context(arc.open(), None):
|
||||||
self.expect_file('foo')
|
self.expect_file('foo')
|
||||||
|
|
||||||
@@ -3762,6 +3767,123 @@ class TestExtractionFilters(unittest.TestCase):
|
@@ -4390,6 +4395,123 @@ class OffsetValidationTests(unittest.TestCase):
|
||||||
self.expect_exception(TypeError) # errorlevel is not int
|
self.assertEqual(members[0].offset, expected_offset)
|
||||||
|
|
||||||
|
|
||||||
+ @contextmanager
|
+ @contextmanager
|
||||||
@ -247,5 +247,5 @@ index a66f7efd2d6..6fd3c384b5c 100644
|
|||||||
support.unlink(TEMPDIR)
|
support.unlink(TEMPDIR)
|
||||||
os.makedirs(TEMPDIR)
|
os.makedirs(TEMPDIR)
|
||||||
--
|
--
|
||||||
2.40.1
|
2.51.1
|
||||||
|
|
||||||
|
|||||||
@ -13,7 +13,7 @@ URL: https://www.python.org/
|
|||||||
|
|
||||||
# WARNING When rebasing to a new Python version,
|
# WARNING When rebasing to a new Python version,
|
||||||
# remember to update the python3-docs package as well
|
# remember to update the python3-docs package as well
|
||||||
%global general_version %{pybasever}.24
|
%global general_version %{pybasever}.25
|
||||||
#global prerel ...
|
#global prerel ...
|
||||||
%global upstream_version %{general_version}%{?prerel}
|
%global upstream_version %{general_version}%{?prerel}
|
||||||
Version: %{general_version}%{?prerel:~%{prerel}}
|
Version: %{general_version}%{?prerel:~%{prerel}}
|
||||||
@ -1842,6 +1842,9 @@ CheckPython optimized
|
|||||||
# ======================================================
|
# ======================================================
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Nov 03 2025 Karolina Surma <ksurma@redhat.com> - 3.9.25-1
|
||||||
|
- Update to Python 3.9.25
|
||||||
|
|
||||||
* Fri Oct 10 2025 Karolina Surma <ksurma@redhat.com> - 3.9.24-1
|
* Fri Oct 10 2025 Karolina Surma <ksurma@redhat.com> - 3.9.24-1
|
||||||
- Update to Python 3.9.24
|
- Update to Python 3.9.24
|
||||||
|
|
||||||
|
|||||||
4
sources
4
sources
@ -1,2 +1,2 @@
|
|||||||
SHA512 (Python-3.9.24.tar.xz) = 54be1c0805e66aa68b4c71e07a4234176203868ecdb6dfdc1859b04b95858bde26990dd1c5ac1001ce4b55513c05cd63310155c6c6666707e27fb79c159870bb
|
SHA512 (Python-3.9.25.tar.xz) = 33fd65952cc3ce5df83825aa32a103935815bdd5a016e5fd9896cafb068a3f89b3a6134458a2694e4f0f4f8a9fbe84739b53116264728b32cde0f03ab210cb19
|
||||||
SHA512 (Python-3.9.24.tar.xz.asc) = 50459b5a540e5e699ee2dffd8988369c0a15bd00cfa76d8b148ea7ad648205b8454521bd0a30dc39d6497b0ebcb85a037aedd56d8188c854d1d4409859aeead2
|
SHA512 (Python-3.9.25.tar.xz.asc) = 83f0a0e558aa89a106bdffeeb9b0fa2685fbd7be5c5954f9176c59c6c7023716207b07239f202b3508cbb98ca34572161955f0bfd3732fdb9265721cd6723dbe
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user