Show More
@@ -1229,7 +1229,7 b' static PyObject *index_slicechunktodensi' | |||||
1229 | if (revnum == -1 && PyErr_Occurred()) { |
|
1229 | if (revnum == -1 && PyErr_Occurred()) { | |
1230 | goto bail; |
|
1230 | goto bail; | |
1231 | } |
|
1231 | } | |
1232 |
if (revnum < |
|
1232 | if (revnum < nullrev || revnum >= idxlen) { | |
1233 | PyErr_Format(PyExc_IndexError, |
|
1233 | PyErr_Format(PyExc_IndexError, | |
1234 | "index out of range: %zd", revnum); |
|
1234 | "index out of range: %zd", revnum); | |
1235 | goto bail; |
|
1235 | goto bail; |
General Comments 0
You need to be logged in to leave comments.
Login now