diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-10-03 23:36:02 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-10-03 23:36:02 +0200 |
commit | 9ce5a835bbb33c8a7f22e8ab4c6c226ecb27b0be (patch) | |
tree | 7f91e204d547fc86c83298daf3b672e18cb43af8 /Python/pystrcmp.c | |
parent | b80389535581300295758f3a9b50e9628b77ae3c (diff) | |
download | cpython-git-9ce5a835bbb33c8a7f22e8ab4c6c226ecb27b0be.tar.gz |
PyUnicode_Join() checks output length in debug mode
PyUnicode_CopyCharacters() may copies less character than requested size, if
the input string is smaller than the argument. (This is very unlikely, but who
knows!?)
Avoid also calling PyUnicode_CopyCharacters() if the string is empty.
Diffstat (limited to 'Python/pystrcmp.c')
0 files changed, 0 insertions, 0 deletions