cpython: 0f1c2e2b6bc2 (original) (raw)

Mercurial > cpython

changeset 82051:0f1c2e2b6bc2 3.2

Issue #17043: The unicode-internal decoder no longer read past the end of input buffer. [#17043]

Serhiy Storchaka storchaka@gmail.com
date Thu, 07 Feb 2013 16:23:21 +0200
parents 148e6ebfe854
children fec2976c8503 55a89352e220
files Misc/NEWS Objects/unicodeobject.c
diffstat 2 files changed, 27 insertions(+), 27 deletions(-)[+] [-] Misc/NEWS 3 Objects/unicodeobject.c 51

line wrap: on

line diff

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -10,6 +10,9 @@ What's New in Python 3.2.4 Core and Builtins ----------------- +- Issue #17043: The unicode-internal decoder no longer read past the end of

--- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -4392,37 +4392,34 @@ PyObject *_PyUnicode_DecodeUnicodeIntern end = s + size; while (s < end) {

+#ifdef Py_UNICODE_WIDE /* We have to sanity check the raw data, otherwise doom looms for some malformed UCS-4 data. */

-#ifdef Py_UNICODE_WIDE

#endif

+