From f5a97f08ca5fd2be8b3298640fd9735bd453d95e42497c7cdf41001e2cb89a1b Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 27 May 2025 14:10:40 +0000 Subject: [PATCH] REmove A0 chars. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python312?expand=0&rev=139 --- CVE-2025-4516-DecodeError-handler.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CVE-2025-4516-DecodeError-handler.patch b/CVE-2025-4516-DecodeError-handler.patch index 3553602..dcbdaeb 100644 --- a/CVE-2025-4516-DecodeError-handler.patch +++ b/CVE-2025-4516-DecodeError-handler.patch @@ -71,7 +71,7 @@ Index: Python-3.12.10/Include/cpython/unicodeobject.h Index: Python-3.12.10/Lib/test/test_codeccallbacks.py =================================================================== --- Python-3.12.10.orig/Lib/test/test_codeccallbacks.py 2025-05-22 14:37:58.935377659 +0200 -+++ Python-3.12.10/Lib/test/test_codeccallbacks.py 2025-05-27 15:51:28.818768066 +0200 ++++ Python-3.12.10/Lib/test/test_codeccallbacks.py 2025-05-27 16:10:07.476764666 +0200 @@ -1,6 +1,7 @@ import codecs import html.entities @@ -114,8 +114,8 @@ Index: Python-3.12.10/Lib/test/test_codeccallbacks.py + self.assertEqual(decode(input, 'test.mutating2'), (expected, len(input))) + self.assertIn(msg, str(cm.warning)) + -+        check(br'\x0n\z', '\u0404\n\\z', r"invalid escape sequence '\\z'") -+        check(br'\x0n\501', '\u0404\n\u0141', r"invalid octal escape sequence '\\501'") ++ check(br'\x0n\z', '\u0404\n\\z', r"invalid escape sequence '\\z'") ++ check(br'\x0n\501', '\u0404\n\u0141', r"invalid octal escape sequence '\\501'") + check(br'\x0z', '\u0404\\z', r"invalid escape sequence '\z'") + + check(br'\x3n\zr', '\u0404\n\\zr', r"invalid escape sequence '\z'")