Commit 19c4c5f7 authored by Serhiy Storchaka's avatar Serhiy Storchaka

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

parent 2bef1b6b
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment