From: Victor Stinner Date: Tue, 19 Nov 2013 11:09:00 +0000 (+0100) Subject: Issue #19513: Disable overallocation of the PyUnicodeWriter before the last write X-Git-Tag: v3.4.0b1~185 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4d3f109ad3d1870130816b94a1f5d6f6c1a07586;p=thirdparty%2FPython%2Fcpython.git Issue #19513: Disable overallocation of the PyUnicodeWriter before the last write --- diff --git a/Objects/listobject.c b/Objects/listobject.c index 50538e178a4e..45666fddfa96 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c @@ -387,6 +387,7 @@ list_repr(PyListObject *v) Py_DECREF(s); } + writer.overallocate = 0; if (_PyUnicodeWriter_WriteChar(&writer, ']') < 0) goto error;