summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2012-05-09 01:24:14 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2012-05-09 01:24:14 (GMT)
commitf59c28c93007d3d7e7340703aa5d2360d285abed (patch)
tree3a9441fda0aebadf04ea4e1fbcfe7639840d706b /Objects
parent5d73c178a80392e876f5cd23fd628a6c8fc5955e (diff)
downloadcpython-f59c28c93007d3d7e7340703aa5d2360d285abed.zip
cpython-f59c28c93007d3d7e7340703aa5d2360d285abed.tar.gz
cpython-f59c28c93007d3d7e7340703aa5d2360d285abed.tar.bz2
unicode_writer_finish() checks string consistency
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 0722312..2c8378e 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -13320,6 +13320,7 @@ unicode_writer_finish(unicode_writer_t *writer)
Py_DECREF(writer->buffer);
return NULL;
}
+ assert(_PyUnicode_CheckConsistency(writer->buffer, 1));
return writer->buffer;
}