Hello community,

here is the log from the commit of package python-pyOpenSSL for 
openSUSE:Factory checked in at 2017-08-14 12:37:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyOpenSSL (Old)
 and      /work/SRC/openSUSE:Factory/.python-pyOpenSSL.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pyOpenSSL"

Mon Aug 14 12:37:47 2017 rev:27 rq:515886 version:17.0.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pyOpenSSL/python-pyOpenSSL.changes        
2017-06-13 16:07:27.960083216 +0200
+++ /work/SRC/openSUSE:Factory/.python-pyOpenSSL.new/python-pyOpenSSL.changes   
2017-08-14 12:37:50.730322685 +0200
@@ -1,0 +2,8 @@
+Thu Aug 10 11:38:17 CEST 2017 - [email protected]
+
+- add patch to always trigger overflow in the testsuite
+  (gh#pyca/pyopenssl#657) b3460c6a9a45a016d1ab65c149c606fa3f07096d
+ 
+  python-pyOpenSSL-always-overflow.patch 
+
+-------------------------------------------------------------------

New:
----
  python-pyOpenSSL-always-overflow.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pyOpenSSL.spec ++++++
--- /var/tmp/diff_new_pack.zyD8m6/_old  2017-08-14 12:37:51.426224963 +0200
+++ /var/tmp/diff_new_pack.zyD8m6/_new  2017-08-14 12:37:51.430224401 +0200
@@ -33,6 +33,8 @@
 Patch2:         rsa128-i586.patch
 # PATCH-FIX-UPSTREAM python-pyOpenSSL=replace-expired-cert.patch 
gh#pyca/pyopenssl#637 [email protected] -- the root cert expired
 Patch3:         python-pyOpenSSL=replace-expired-cert.patch
+# PATCH-FIX-UPSTREAM python-pyOpenSSL-always-overflow.patch 
gh#pyca/pyopenssl#657 [email protected] - always trigger overflow in testsuite
+Patch4:         python-pyOpenSSL-always-overflow.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  %{python_module cryptography >= 1.3.4}
 BuildRequires:  %{python_module devel}
@@ -75,6 +77,7 @@
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
 
 %build
 %python_build

++++++ python-pyOpenSSL-always-overflow.patch ++++++
>From b3460c6a9a45a016d1ab65c149c606fa3f07096d Mon Sep 17 00:00:00 2001
From: Alex Gaynor <[email protected]>
Date: Thu, 6 Jul 2017 22:40:40 -0400
Subject: [PATCH] Fixed #657 -- handle OverflowErrors on large allocation
 requests (#659)

* Fixed #657 -- handle OverflowErrors on large allocation requests

* always be overflowing

diff --git a/tests/test_rand.py b/tests/test_rand.py
index bdd3af0..41a4f27 100644
--- a/tests/test_rand.py
+++ b/tests/test_rand.py
@@ -32,11 +32,11 @@ class TestRand(object):
 
     def test_insufficient_memory(self):
         """
-        `OpenSSL.rand.bytes` raises `MemoryError` if more bytes are requested
-        than will fit in memory.
+        `OpenSSL.rand.bytes` raises `MemoryError` or `OverflowError` if more
+        bytes are requested than will fit in memory.
         """
-        with pytest.raises(MemoryError):
-            rand.bytes(sys.maxsize)
+        with pytest.raises((MemoryError, OverflowError)):
+            rand.bytes(sys.maxsize + 1)
 
     def test_bytes(self):
         """

Reply via email to