mirror of
https://github.com/python/cpython.git
synced 2025-10-21 14:12:27 +00:00
Fixes for possible buffer overflows in sprintf() usages.
This commit is contained in:
parent
5107b4cf5f
commit
d4c0a9c59b
8 changed files with 17 additions and 22 deletions
|
@ -232,7 +232,7 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname,
|
|||
if (import_python &&
|
||||
strcasecmp(buffer,import_python)) {
|
||||
sprintf(buffer,
|
||||
"Module use of %s conflicts "
|
||||
"Module use of %.150s conflicts "
|
||||
"with this version of Python.",
|
||||
import_python);
|
||||
PyErr_SetString(PyExc_ImportError,buffer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue