diff options
author | Marc-André Lemburg <mal@egenix.com> | 2001-11-28 11:47:00 (GMT) |
---|---|---|
committer | Marc-André Lemburg <mal@egenix.com> | 2001-11-28 11:47:00 (GMT) |
commit | d4c0a9c59b399bfa0d36030663f78aa18a68e051 (patch) | |
tree | 86bc79d1907b7ca06135eaf0921dbfe11d8451ab /Python/compile.c | |
parent | 5107b4cf5fa4d748bab4022531e6c5741f31e196 (diff) | |
download | cpython-d4c0a9c59b399bfa0d36030663f78aa18a68e051.zip cpython-d4c0a9c59b399bfa0d36030663f78aa18a68e051.tar.gz cpython-d4c0a9c59b399bfa0d36030663f78aa18a68e051.tar.bz2 |
Fixes for possible buffer overflows in sprintf() usages.
Diffstat (limited to 'Python/compile.c')
-rw-r--r-- | Python/compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c index b477513..1104def 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -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, |