Issue #19513: Disable overallocation of the PyUnicodeWriter before the last write

This commit is contained in:
Victor Stinner 2013-11-19 12:09:00 +01:00
parent 58cf607d13
commit 4d3f109ad3
1 changed files with 1 additions and 0 deletions

View File

@ -387,6 +387,7 @@ list_repr(PyListObject *v)
Py_DECREF(s);
}
writer.overallocate = 0;
if (_PyUnicodeWriter_WriteChar(&writer, ']') < 0)
goto error;