Kaydet (Commit) 42e8e5d1 authored tarafından Guido van Rossum's avatar Guido van Rossum

Protect PyErr_Format format string argument from overflow.

üst 0d6b49ef
...@@ -577,7 +577,7 @@ _PyImport_LoadDynamicModule(name, pathname, fp) ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment