From 4d3f109ad3d1870130816b94a1f5d6f6c1a07586 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 19 Nov 2013 12:09:00 +0100 Subject: Issue #19513: Disable overallocation of the PyUnicodeWriter before the last write --- Objects/listobject.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Objects/listobject.c b/Objects/listobject.c index 50538e1..45666fd 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; -- cgit v0.12