mirror of
https://github.com/python/cpython.git
synced 2026-01-27 05:05:50 +00:00
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…
x
Reference in New Issue
Block a user