Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c175175

Browse files
committed
Zero-initialize buf. Fixes #3557.
1 parent 1f9d907 commit c175175

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Modules/sha1module.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,7 @@ SHA1_new(PyObject *self, PyObject *args, PyObject *kwdict)
488488
static char *kwlist[] = {"string", NULL};
489489
SHA1object *new;
490490
Py_buffer buf;
491+
buf.buf = NULL;
491492

492493
if (!PyArg_ParseTupleAndKeywords(args, kwdict, "|s*:new", kwlist,
493494
&buf)) {

0 commit comments

Comments
 (0)