diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2008-08-15 06:27:17 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2008-08-15 06:27:17 (GMT) |
commit | c17517589abc2e548331904059ce49a165955e57 (patch) | |
tree | d26eeb12d50c50320dbb96ce892dfdcdf2ae99d2 /Modules/sha1module.c | |
parent | 1f9d907c9009daf169d5d6fcdcef72f85fc6f3ac (diff) | |
download | cpython-c17517589abc2e548331904059ce49a165955e57.zip cpython-c17517589abc2e548331904059ce49a165955e57.tar.gz cpython-c17517589abc2e548331904059ce49a165955e57.tar.bz2 |
Zero-initialize buf. Fixes #3557.
Diffstat (limited to 'Modules/sha1module.c')
-rw-r--r-- | Modules/sha1module.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/sha1module.c b/Modules/sha1module.c index b21b21d..7d97e4f 100644 --- a/Modules/sha1module.c +++ b/Modules/sha1module.c @@ -488,6 +488,7 @@ SHA1_new(PyObject *self, PyObject *args, PyObject *kwdict) static char *kwlist[] = {"string", NULL}; SHA1object *new; Py_buffer buf; + buf.buf = NULL; if (!PyArg_ParseTupleAndKeywords(args, kwdict, "|s*:new", kwlist, &buf)) { |