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

Skip to content

Commit 8f1cdc6

Browse files
committed
ensure read size is initialized
1 parent 3776836 commit 8f1cdc6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/mmapmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ static PyObject *
267267
mmap_read_method(mmap_object *self,
268268
PyObject *args)
269269
{
270-
Py_ssize_t num_bytes, remaining;
270+
Py_ssize_t num_bytes = PY_SSIZE_T_MAX, remaining;
271271
PyObject *result;
272272

273273
CHECK_VALID(NULL);

0 commit comments

Comments
 (0)