From: Shamil Date: Mon, 27 Oct 2025 08:55:57 +0000 (+0300) Subject: Remove dead stores to 'size' in UTF-8 decoder (unicodeobject.c) (#140637) X-Git-Tag: v3.15.0a2~310 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7d70a147f58edabc9691869a0e8b606c9c3ac184;p=thirdparty%2FPython%2Fcpython.git Remove dead stores to 'size' in UTF-8 decoder (unicodeobject.c) (#140637) --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index d4549b70d4da..f60f7dd2d136 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -5409,7 +5409,6 @@ unicode_decode_utf8(const char *s, Py_ssize_t size, if (maxchr <= 255) { memcpy(PyUnicode_1BYTE_DATA(u), s, pos); s += pos; - size -= pos; writer.pos = pos; } @@ -5457,7 +5456,6 @@ unicode_decode_utf8_writer(_PyUnicodeWriter *writer, return 0; } s += decoded; - size -= decoded; } return unicode_decode_utf8_impl(writer, starts, s, end,