Commit 73f01c65 authored by Victor Stinner's avatar Victor Stinner

PyUnicode_CopyCharacters() initializes overflow

parent e57b1c0d
...@@ -654,6 +654,7 @@ PyUnicode_CopyCharacters(PyObject *to, Py_ssize_t to_start, ...@@ -654,6 +654,7 @@ PyUnicode_CopyCharacters(PyObject *to, Py_ssize_t to_start,
int overflow; int overflow;
maxchar = 0; maxchar = 0;
overflow = 0;
for (i=0; i < how_many; i++) { for (i=0; i < how_many; i++) {
ch = PyUnicode_READ(from_kind, from_data, from_start + i); ch = PyUnicode_READ(from_kind, from_data, from_start + i);
if (ch > maxchar) { if (ch > maxchar) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment