Kaydet (Commit) 0d6b49ef authored tarafından Guido van Rossum's avatar Guido van Rossum

Protect PyErr_Format format string argument from overflow (ironically,

the error was about a bad format string :-).
üst db935164
......@@ -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;
}
......
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