From d4c2f2d440d4399c548fe4a5e870e3549f43af22 Mon Sep 17 00:00:00 2001 From: Masahiro Matsuya Date: Mon, 3 Aug 2026 15:05:24 +0900 Subject: [PATCH] Fix missing 'from pyasn1.type import univ' in test patches Add the missing import to the cer and der test_decoder.py sections of python-pyasn1-0.3.7-CVE-2026-59886.patch. The new tests use univ.Real() but the import line was not added along with the encoder import, causing NameError at test time. Signed-off-by: Masahiro Matsuya --- python-pyasn1-0.3.7-CVE-2026-59886.patch | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python-pyasn1-0.3.7-CVE-2026-59886.patch b/python-pyasn1-0.3.7-CVE-2026-59886.patch index a41d480..94ed8a5 100644 --- a/python-pyasn1-0.3.7-CVE-2026-59886.patch +++ b/python-pyasn1-0.3.7-CVE-2026-59886.patch @@ -128,11 +128,12 @@ diff --git a/tests/codec/cer/test_decoder.py b/tests/codec/cer/test_decoder.py index 828c17f..c4a91db 100644 --- a/tests/codec/cer/test_decoder.py +++ b/tests/codec/cer/test_decoder.py -@@ -14,6 +14,7 @@ except ImportError: +@@ -14,6 +14,8 @@ except ImportError: from tests.base import BaseTestCase from pyasn1.codec.cer import decoder +from pyasn1.codec.cer import encoder ++from pyasn1.type import univ from pyasn1.compat.octets import ints2octs, str2octs, null from pyasn1.error import PyAsn1Error @@ -157,11 +158,12 @@ diff --git a/tests/codec/der/test_decoder.py b/tests/codec/der/test_decoder.py index 6f292fd..08101a4 100644 --- a/tests/codec/der/test_decoder.py +++ b/tests/codec/der/test_decoder.py -@@ -14,6 +14,7 @@ except ImportError: +@@ -14,6 +14,8 @@ except ImportError: from tests.base import BaseTestCase from pyasn1.codec.der import decoder +from pyasn1.codec.der import encoder ++from pyasn1.type import univ from pyasn1.compat.octets import ints2octs, null from pyasn1.error import PyAsn1Error