python/dist/src/Objects unicodeobject.c, 2.228, 2.229
Update of /cvsroot/python/python/dist/src/Objects In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8568 Modified Files: unicodeobject.c Log Message: Applied patch for [ 1047269 ] Buffer overwrite in PyUnicode_AsWideChar. Python 2.3.x candidate. Index: unicodeobject.c =================================================================== RCS file: /cvsroot/python/python/dist/src/Objects/unicodeobject.c,v retrieving revision 2.228 retrieving revision 2.229 diff -u -d -r2.228 -r2.229 --- unicodeobject.c 16 Sep 2004 03:28:13 -0000 2.228 +++ unicodeobject.c 15 Oct 2004 07:45:05 -0000 2.229 @@ -368,7 +368,7 @@ register Py_UNICODE *u; register int i; u = PyUnicode_AS_UNICODE(unicode); - for (i = size; i >= 0; i--) + for (i = size; i > 0; i--) *u++ = *w++; } #endif @@ -393,7 +393,7 @@ register Py_UNICODE *u; register int i; u = PyUnicode_AS_UNICODE(unicode); - for (i = size; i >= 0; i--) + for (i = size; i > 0; i--) *w++ = *u++; } #endif
participants (1)
-
lemburgļ¼ users.sourceforge.net