summaryrefslogtreecommitdiffstats
path: root/Python/importdl.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-01-19 22:23:08 (GMT)
committerGuido van Rossum <guido@python.org>1998-01-19 22:23:08 (GMT)
commit42e8e5d16481c65c595faae73ae54fca0b905fd2 (patch)
treeee4b6f408a07748db771069a0b525d335a18e69a /Python/importdl.c
parent0d6b49eff2bae85a7ea5231e665faafc6e598513 (diff)
downloadcpython-42e8e5d16481c65c595faae73ae54fca0b905fd2.zip
cpython-42e8e5d16481c65c595faae73ae54fca0b905fd2.tar.gz
cpython-42e8e5d16481c65c595faae73ae54fca0b905fd2.tar.bz2
Protect PyErr_Format format string argument from overflow.
Diffstat (limited to 'Python/importdl.c')
-rw-r--r--Python/importdl.c2
1 files changed, 1 insertions, 1 deletions
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 @@ _PyImport_LoadDynamicModule(name, pathname, fp)
#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;
}