mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #23055: Fixed read-past-the-end error in PyUnicode_FromFormatV.
This commit is contained in:
parent
3f95292be6
commit
aed198426a
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue