commit | 5db862dd0cae0077b09a765220bb358e0e129449 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Mon Apr 10 12:46:51 2000 +0000 |
committer | Guido van Rossum <guido@python.org> | Mon Apr 10 12:46:51 2000 +0000 |
tree | 997e545b6dab223b7828d96ac9c39f26e5fe4d14 | |
parent | fa972c987c394507ca6fb76de5ef0b47e9301226 [diff] [blame] |
Skip Montanaro: add string precisions to calls to PyErr_Format to prevent possible buffer overruns.
diff --git a/Python/ceval.c b/Python/ceval.c index f225446..989e17f 100644 --- a/Python/ceval.c +++ b/Python/ceval.c
@@ -2513,7 +2513,7 @@ else { if (!PyFunction_Check(func)) { PyErr_Format(PyExc_TypeError, - "call of non-function (type %s)", + "call of non-function (type %.200s)", func->ob_type->tp_name); return NULL; }