summaryrefslogtreecommitdiffstats
path: root/Objects/listobject.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-11-19 11:09:00 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-11-19 11:09:00 (GMT)
commit4d3f109ad3d1870130816b94a1f5d6f6c1a07586 (patch)
tree0cc469329f783686ef6f29645f662e5e060dd646 /Objects/listobject.c
parent58cf607d13c178f41aed05458296b68e985c5fff (diff)
downloadcpython-4d3f109ad3d1870130816b94a1f5d6f6c1a07586.zip
cpython-4d3f109ad3d1870130816b94a1f5d6f6c1a07586.tar.gz
cpython-4d3f109ad3d1870130816b94a1f5d6f6c1a07586.tar.bz2
Issue #19513: Disable overallocation of the PyUnicodeWriter before the last write
Diffstat (limited to 'Objects/listobject.c')
-rw-r--r--Objects/listobject.c1
1 files changed, 1 insertions, 0 deletions
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;