]> granicus.if.org Git - python/commitdiff
Protect PyErr_Format format string argument from overflow.
authorGuido van Rossum <guido@python.org>
Mon, 19 Jan 1998 22:23:08 +0000 (22:23 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 19 Jan 1998 22:23:08 +0000 (22:23 +0000)
Python/importdl.c

index 40b37d2a3ebb2b18b33a8b56fb4511486607e9cd..157257ff9ec73649c2565ba352a59893eef1852f 100644 (file)
@@ -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;
        }