##// END OF EJS Templates
sparse-revlog: protect C code against delta chain including nullrev...
Boris Feld -
r40999:2e305e54 default
parent child Browse files
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 < 0 || revnum >= idxlen) {
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