diff options
author | Guido van Rossum <guido@python.org> | 1998-01-19 22:23:08 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-01-19 22:23:08 (GMT) |
commit | 42e8e5d16481c65c595faae73ae54fca0b905fd2 (patch) | |
tree | ee4b6f408a07748db771069a0b525d335a18e69a /Python | |
parent | 0d6b49eff2bae85a7ea5231e665faafc6e598513 (diff) | |
download | cpython-42e8e5d16481c65c595faae73ae54fca0b905fd2.zip cpython-42e8e5d16481c65c595faae73ae54fca0b905fd2.tar.gz cpython-42e8e5d16481c65c595faae73ae54fca0b905fd2.tar.bz2 |
Protect PyErr_Format format string argument from overflow.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/importdl.c | 2 |
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; } |