cpython: PyUnicode_CopyCharacters() initializes overflow

Sept. 28, 2011
8:27 p.m.
http://hg.python.org/cpython/rev/fb70b59fa8f9 changeset: 72501:fb70b59fa8f9 user: Victor Stinner <victor.stinner@haypocalc.com> date: Wed Sep 28 22:28:04 2011 +0200 summary: PyUnicode_CopyCharacters() initializes overflow files: Objects/unicodeobject.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c --- 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) { -- Repository URL: http://hg.python.org/cpython
4914
Age (days ago)
4914
Last active (days ago)
0 comments
1 participants
participants (1)
-
victor.stinner