diff options
author | Guido van Rossum <guido@python.org> | 1998-01-19 22:22:44 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-01-19 22:22:44 (GMT) |
commit | 0d6b49eff2bae85a7ea5231e665faafc6e598513 (patch) | |
tree | 22e0840bd8f32bf29293267b708789c52f8d5ad1 /Python | |
parent | db9351643dd9019bdbb37dd76710c38b07774ed7 (diff) | |
download | cpython-0d6b49eff2bae85a7ea5231e665faafc6e598513.zip cpython-0d6b49eff2bae85a7ea5231e665faafc6e598513.tar.gz cpython-0d6b49eff2bae85a7ea5231e665faafc6e598513.tar.bz2 |
Protect PyErr_Format format string argument from overflow (ironically,
the error was about a bad format string :-).
Diffstat (limited to 'Python')
-rw-r--r-- | Python/getargs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/getargs.c b/Python/getargs.c index 296a3aa..7bc150d 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -261,7 +261,7 @@ vgetargs1(args, format, p_va, compat) *format != '(' && *format != '|' && *format != ':' && *format != ';') { PyErr_Format(PyExc_SystemError, - "bad format string: %s", formatsave); + "bad format string: %.200s", formatsave); return 0; } |