commit | 4d3f109ad3d1870130816b94a1f5d6f6c1a07586 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Tue Nov 19 12:09:00 2013 +0100 |
committer | Victor Stinner <victor.stinner@gmail.com> | Tue Nov 19 12:09:00 2013 +0100 |
tree | 0cc469329f783686ef6f29645f662e5e060dd646 | |
parent | 58cf607d13c178f41aed05458296b68e985c5fff [diff] [blame] |
Issue #19513: Disable overallocation of the PyUnicodeWriter before the last write
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 @@ Py_DECREF(s); } + writer.overallocate = 0; if (_PyUnicodeWriter_WriteChar(&writer, ']') < 0) goto error;