Commit c9a61689 authored by Zackery Spytz's avatar Zackery Spytz Committed by Serhiy Storchaka

Fix a possible crash in range.__reversed__(). (GH-10252)

parent 0353b4ea
......@@ -1154,6 +1154,7 @@ long_range:
it = PyObject_New(longrangeiterobject, &PyLongRangeIter_Type);
if (it == NULL)
return NULL;
it->index = it->start = it->step = NULL;
/* start + (len - 1) * step */
it->len = range->length;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment