mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Protect PyErr_Format format string argument from overflow.
This commit is contained in:
parent
0d6b49eff2
commit
42e8e5d164
1 changed files with 1 additions and 1 deletions
|
@ -577,7 +577,7 @@ _PyImport_LoadDynamicModule(name, pathname, fp)
|
||||||
#endif
|
#endif
|
||||||
if (p == NULL) {
|
if (p == NULL) {
|
||||||
PyErr_Format(PyExc_ImportError,
|
PyErr_Format(PyExc_ImportError,
|
||||||
"dynamic module does not define init function (%s)",
|
"dynamic module does not define init function (%.200s)",
|
||||||
funcname);
|
funcname);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue