From: Victor Stinner Date: Wed, 28 Sep 2011 20:28:04 +0000 (+0200) Subject: PyUnicode_CopyCharacters() initializes overflow X-Git-Tag: v3.3.0a1~1463 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=73f01c65c82b532ba0f9ce8540b84493c2f25e63;p=thirdparty%2FPython%2Fcpython.git PyUnicode_CopyCharacters() initializes overflow --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 68977f4fee0f..74fb7ce8ffd6 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -654,6 +654,7 @@ PyUnicode_CopyCharacters(PyObject *to, Py_ssize_t to_start, int overflow; maxchar = 0; + overflow = 0; for (i=0; i < how_many; i++) { ch = PyUnicode_READ(from_kind, from_data, from_start + i); if (ch > maxchar) {