diff options
| author | Marc-André Lemburg <mal@egenix.com> | 2001-11-28 11:47:00 +0000 |
|---|---|---|
| committer | Marc-André Lemburg <mal@egenix.com> | 2001-11-28 11:47:00 +0000 |
| commit | 11df42bde07c01b01c0abf8e2a5248e53d74613e (patch) | |
| tree | 2c2bc10bc3b26d5e94388e37571cb99002f8979c /Python/compile.c | |
| parent | a0b999dff248b8f49f851dca18fba8e5c06306a6 (diff) | |
| download | cpython-11df42bde07c01b01c0abf8e2a5248e53d74613e.tar.gz | |
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 b477513dc1..1104def95e 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, |
