##// END OF EJS Templates
diffhelpers: harden testhunk
Matt Mackall -
r16651:9e40bc4c stable
parent child Browse files
Show More
@@ -135,7 +135,7 b' testhunk(PyObject *self, PyObject *args)'
135 135 return NULL;
136 136 alen = PyList_Size(a);
137 137 blen = PyList_Size(b);
138 if (alen > blen - bstart) {
138 if (alen > blen - bstart || bstart < 0) {
139 139 return Py_BuildValue("l", -1);
140 140 }
141 141 for (i = 0; i < alen; i++) {
General Comments 0
You need to be logged in to leave comments. Login now