diff --git a/python-paramiko.changes b/python-paramiko.changes index 5d25f06..40cace3 100644 --- a/python-paramiko.changes +++ b/python-paramiko.changes @@ -1,5 +1,5 @@ ------------------------------------------------------------------- -Tue Dec 19 06:37:20 UTC 2023 - Steve Kowalik +Wed Dec 20 06:57:15 UTC 2023 - Steve Kowalik - Update to 3.4.0: (CVE-2023-48795, bsc#1218168) * Transport grew a new packetizer_class kwarg for overriding the @@ -28,6 +28,8 @@ Tue Dec 19 06:37:20 UTC 2023 - Steve Kowalik * Tweak ext-info-(c|s) detection during KEXINIT protocol phase; the original implementation made assumptions based on an OpenSSH implementation detail. +- Add patch use-64-bit-maxsize-everywhere.patch: + * Use the 64-bit value of sys.maxsize. ------------------------------------------------------------------- Fri Sep 29 22:29:46 UTC 2023 - Ondřej Súkup diff --git a/python-paramiko.spec b/python-paramiko.spec index 52f1ea6..2b398c9 100644 --- a/python-paramiko.spec +++ b/python-paramiko.spec @@ -27,6 +27,8 @@ Source0: https://files.pythonhosted.org/packages/source/p/paramiko/parami Patch0: paramiko-test_extend_timeout.patch # PATCH-FIX-OPENSUSE remove-icecream-dep.patch to do not depend on python-icecream and unvendor lexicon Patch1: remove-icecream-dep.patch +# PATCH-FIX-OPENSUSE use 64-bit value of sys.maxsize to prevent test failure on 32-bit +Patch2: use-64-bit-maxsize-everywhere.patch BuildRequires: %{python_module PyNaCl >= 1.0.1} BuildRequires: %{python_module Sphinx} BuildRequires: %{python_module bcrypt >= 3.2} diff --git a/use-64-bit-maxsize-everywhere.patch b/use-64-bit-maxsize-everywhere.patch new file mode 100644 index 0000000..3a12475 --- /dev/null +++ b/use-64-bit-maxsize-everywhere.patch @@ -0,0 +1,19 @@ +Index: paramiko-3.4.0/tests/test_transport.py +=================================================================== +--- paramiko-3.4.0.orig/tests/test_transport.py ++++ paramiko-3.4.0/tests/test_transport.py +@@ -1423,12 +1423,12 @@ class TestStrictKex: + setattr( + self.packetizer, + "_Packetizer__sequence_number_in", +- sys.maxsize, ++ 2**63-1, + ) + setattr( + self.packetizer, + "_Packetizer__sequence_number_out", +- sys.maxsize, ++ 2**63-1, + ) + + with raises(