##// END OF EJS Templates
revlog: don't try to partialmatch strings those length > 40...
sorcerer -
r17353:bde1185f stable
parent child Browse files
Show More
@@ -1084,8 +1084,10 b' static PyObject *index_partialmatch(inde'
1084 return NULL;
1084 return NULL;
1085 }
1085 }
1086
1086
1087 if (nodelen > 40)
1087 if (nodelen > 40) {
1088 nodelen = 40;
1088 PyErr_SetString(PyExc_ValueError, "key too long");
1089 return NULL;
1090 }
1089
1091
1090 for (i = 0; i < nodelen; i++)
1092 for (i = 0; i < nodelen; i++)
1091 hexdigit(node, i);
1093 hexdigit(node, i);
General Comments 0
You need to be logged in to leave comments. Login now