mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Protect PyErr_Format format string argument from overflow.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user