commit | 73f01c65c82b532ba0f9ce8540b84493c2f25e63 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Wed Sep 28 22:28:04 2011 +0200 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Wed Sep 28 22:28:04 2011 +0200 |
tree | 763559a484adef9c0589906573f02d305d8d641c | |
parent | e57b1c0da18c20dae31fdc6cda7c9e2cb3b07bff [diff] |
PyUnicode_CopyCharacters() initializes overflow
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 68977f4..74fb7ce 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c
@@ -654,6 +654,7 @@ int overflow; maxchar = 0; + overflow = 0; for (i=0; i < how_many; i++) { ch = PyUnicode_READ(from_kind, from_data, from_start + i); if (ch > maxchar) {