mirror of
https://github.com/python/cpython.git
synced 2024-11-28 04:15:11 +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};
|
static char *kwlist[] = {"string", NULL};
|
||||||
SHA1object *new;
|
SHA1object *new;
|
||||||
Py_buffer buf;
|
Py_buffer buf;
|
||||||
|
buf.buf = NULL;
|
||||||
|
|
||||||
if (!PyArg_ParseTupleAndKeywords(args, kwdict, "|s*:new", kwlist,
|
if (!PyArg_ParseTupleAndKeywords(args, kwdict, "|s*:new", kwlist,
|
||||||
&buf)) {
|
&buf)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user