mirror of
https://github.com/python/cpython.git
synced 2024-11-24 10:24:35 +08:00
Zero-initialize buf. Fixes #3557.
This commit is contained in:
parent
1f9d907c90
commit
c17517589a
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user