commit | 42e8e5d16481c65c595faae73ae54fca0b905fd2 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Mon Jan 19 22:23:08 1998 +0000 |
committer | Guido van Rossum <guido@python.org> | Mon Jan 19 22:23:08 1998 +0000 |
tree | ee4b6f408a07748db771069a0b525d335a18e69a | |
parent | 0d6b49eff2bae85a7ea5231e665faafc6e598513 [diff] [blame] |
Protect PyErr_Format format string argument from overflow.
diff --git a/Python/importdl.c b/Python/importdl.c index 40b37d2..157257f 100644 --- a/Python/importdl.c +++ b/Python/importdl.c
@@ -577,7 +577,7 @@ #endif if (p == NULL) { PyErr_Format(PyExc_ImportError, - "dynamic module does not define init function (%s)", + "dynamic module does not define init function (%.200s)", funcname); return NULL; }