diff options
| author | Guido van Rossum <guido@python.org> | 1998-01-19 22:23:08 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 1998-01-19 22:23:08 +0000 |
| commit | 4a4f3b962e5ce1aba93d6a2e949129ff2761ab21 (patch) | |
| tree | e49b286528b4e229e4adbdb1c447e68f9f8344aa /Python/importdl.c | |
| parent | 17ae6ce7e04e9916afda733083ea3fb0fce5b377 (diff) | |
| download | cpython-4a4f3b962e5ce1aba93d6a2e949129ff2761ab21.tar.gz | |
Protect PyErr_Format format string argument from overflow.
Diffstat (limited to 'Python/importdl.c')
| -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 40b37d2a3e..157257ff9e 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; } |
