mirror of
https://github.com/python/cpython.git
synced 2025-08-27 12:16:04 +00:00
Protect PyErr_Format format string argument from overflow (ironically,
the error was about a bad format string :-).
This commit is contained in:
parent
db9351643d
commit
0d6b49eff2
1 changed files with 1 additions and 1 deletions
|
@ -261,7 +261,7 @@ vgetargs1(args, format, p_va, compat)
|
|||
*format != '(' &&
|
||||
*format != '|' && *format != ':' && *format != ';') {
|
||||
PyErr_Format(PyExc_SystemError,
|
||||
"bad format string: %s", formatsave);
|
||||
"bad format string: %.200s", formatsave);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue