Mercurial > cpython-lru_cache-weakref
diff Python/ceval.c @ 12320:5de0b939fe61 legacy-trunk
Skip Montanaro: add string precisions to calls to PyErr_Format
to prevent possible buffer overruns.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 10 Apr 2000 12:46:51 +0000 |
| parents | 2745dae8705f |
| children | d47460b1a679 |
line wrap: on
line diff
--- a/Python/ceval.c Mon Apr 10 12:45:45 2000 +0000 +++ b/Python/ceval.c Mon Apr 10 12:46:51 2000 +0000 @@ -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; }
