mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Zero-initialize buf. Fixes #3557.
This commit is contained in:
parent
1f9d907c90
commit
c17517589a
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue