Issue #23055: Fixed read-past-the-end error in PyUnicode_FromFormatV.

This commit is contained in:
Serhiy Storchaka 2015-01-31 01:15:48 +02:00
parent 3f95292be6
commit aed198426a

View file

@ -762,6 +762,8 @@ PyUnicode_FromFormatV(const char *format, va_list vargs)
f++;
while (*f && *f != '%' && !Py_ISALPHA((unsigned)*f))
f++;
if (!*f)
break;
if (*f == 's' || *f=='S' || *f=='R' || *f=='A' || *f=='V')
++callcount;
}