commit | 227526dc5c47151d3829823f39ba122e7a348ed1 | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Sat Jan 31 01:15:29 2015 +0200 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Sat Jan 31 01:15:29 2015 +0200 |
tree | 85da9eb90f072539782de571ad1036d0265af111 | |
parent | 5ec0bbf27dfef0d486dca1177d8c86f37969474e [diff] [blame] |
Issue #23055: Fixed read-past-the-end error in PyUnicode_FromFormatV.
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 1e3b812..91e7524 100644 --- 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; }