2025-05-22 14:14:05 +00:00
committed by Git OBS Bridge
parent ee7afa01a6
commit d5adcdb437

View File

@@ -469,7 +469,7 @@ Index: Python-3.11.12/Objects/unicodeobject.c
Index: Python-3.11.12/Parser/string_parser.c
===================================================================
--- Python-3.11.12.orig/Parser/string_parser.c 2025-04-08 14:15:29.000000000 +0000
+++ Python-3.11.12/Parser/string_parser.c 2025-05-22 13:00:34.860750605 +0000
+++ Python-3.11.12/Parser/string_parser.c 2025-05-22 14:13:25.035587017 +0000
@@ -130,13 +130,16 @@
len = p - buf;
s = buf;
@@ -487,7 +487,7 @@ Index: Python-3.11.12/Parser/string_parser.c
- /* We have not decref u before because first_invalid_escape points
- inside u. */
+ if (v != NULL && first_invalid_escape_ptr != NULL && t != NULL) {
+ if (warn_invalid_escape_sequence(parser, s, first_invalid_escape_ptr, t) < 0) {
+ if (warn_invalid_escape_sequence(parser, first_invalid_escape_ptr, t) < 0) {
+ /* We have not decref u before because first_invalid_escape_ptr
+ points inside u. */
Py_XDECREF(u);
@@ -511,7 +511,7 @@ Index: Python-3.11.12/Parser/string_parser.c
- if (first_invalid_escape != NULL) {
- if (warn_invalid_escape_sequence(p, first_invalid_escape, t) < 0) {
+ if (first_invalid_escape_ptr != NULL) {
+ if (warn_invalid_escape_sequence(p, s, first_invalid_escape_ptr, t) < 0) {
+ if (warn_invalid_escape_sequence(p, first_invalid_escape_ptr, t) < 0) {
Py_DECREF(result);
return NULL;
}