https://hg.python.org/cpython/rev/245c9f372a34 changeset: 94400:245c9f372a34 branch: 2.7 user: Serhiy Storchaka <storchaka at gmail.com> date: Sat Jan 31 01:15:29 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 @@ -738,6 +738,8 @@ f++; while (*f && *f != '%' && !isalpha((unsigned)*f)) f++; + if (!*f) + break; if (*f == 's' || *f=='S' || *f=='R') ++callcount; } -- Repository URL: https://hg.python.org/cpython