mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Issue #19513: Disable overallocation of the PyUnicodeWriter before the last write
This commit is contained in:
parent
58cf607d13
commit
4d3f109ad3
1 changed files with 1 additions and 0 deletions
|
|
@ -387,6 +387,7 @@ list_repr(PyListObject *v)
|
|||
Py_DECREF(s);
|
||||
}
|
||||
|
||||
writer.overallocate = 0;
|
||||
if (_PyUnicodeWriter_WriteChar(&writer, ']') < 0)
|
||||
goto error;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue