From b814d70dca2377dbde68a20071e3963bf7c729620bc72a41021ff879dd32783d Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sat, 17 May 2025 21:08:41 +0000 Subject: [PATCH] Fix patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python312?expand=0&rev=119 --- CVE-2025-4516-DecodeError-handler.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CVE-2025-4516-DecodeError-handler.patch b/CVE-2025-4516-DecodeError-handler.patch index 7fa2f09..eddadf0 100644 --- a/CVE-2025-4516-DecodeError-handler.patch +++ b/CVE-2025-4516-DecodeError-handler.patch @@ -235,7 +235,7 @@ Index: Python-3.12.10/Misc/NEWS.d/next/Security/2025-05-09-20-22-54.gh-issue-133 Index: Python-3.12.10/Objects/bytesobject.c =================================================================== --- Python-3.12.10.orig/Objects/bytesobject.c 2025-04-08 11:35:47.000000000 +0000 -+++ Python-3.12.10/Objects/bytesobject.c 2025-05-17 17:38:23.813947222 +0000 ++++ Python-3.12.10/Objects/bytesobject.c 2025-05-17 21:07:50.280395109 +0000 @@ -1048,10 +1048,11 @@ } @@ -310,7 +310,7 @@ Index: Python-3.12.10/Objects/bytesobject.c if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1, - "invalid octal escape sequence '\\%.3s'", - first_invalid_escape) < 0) -+ "'\\%o' is an invalid octal escape sequence. " ++ "'\\%o' is an invalid octal escape sequence. ", + first_invalid_escape_char) < 0) { Py_DECREF(result);