cpython (3.2): Issue #23055: Fixed read-past-the-end error in PyUnicode_FromFormatV.
https://hg.python.org/cpython/rev/9fe1d861f486 changeset: 94401:9fe1d861f486 branch: 3.2 parent: 94339:f849f937f78c user: Serhiy Storchaka <storchaka@gmail.com> date: Sat Jan 31 01:15:48 2015 +0200 summary: Issue #23055: Fixed read-past-the-end error in PyUnicode_FromFormatV. files: Objects/unicodeobject.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -762,6 +762,8 @@ f++; while (*f && *f != '%' && !Py_ISALPHA((unsigned)*f)) f++; + if (!*f) + break; if (*f == 's' || *f=='S' || *f=='R' || *f=='A' || *f=='V') ++callcount; } -- Repository URL: https://hg.python.org/cpython
participants (1)
-
serhiy.storchaka