mirror of
https://github.com/python/cpython.git
synced 2025-10-28 01:00:34 +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
|
|
@ -4195,7 +4195,7 @@ get_ref_type(struct compiling *c, char *name)
|
|||
return GLOBAL_IMPLICIT;
|
||||
}
|
||||
}
|
||||
sprintf(buf,
|
||||
PyOS_snprintf(buf, sizeof(buf),
|
||||
"unknown scope for %.100s in %.100s(%s) "
|
||||
"in %s\nsymbols: %s\nlocals: %s\nglobals: %s\n",
|
||||
name, c->c_name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue