Protect PyErr_Format format string argument from overflow.
This commit is contained in:
parent
0d6b49eff2
commit
42e8e5d164
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue