Show More
@@ -481,8 +481,11 b' static PyObject *parse_dirstate(PyObject' | |||
|
481 | 481 | len = readlen; |
|
482 | 482 | |
|
483 | 483 | /* read parents */ |
|
484 | if (len < 40) | |
|
484 | if (len < 40) { | |
|
485 | PyErr_SetString( | |
|
486 | PyExc_ValueError, "too little data for parents"); | |
|
485 | 487 | goto quit; |
|
488 | } | |
|
486 | 489 | |
|
487 | 490 | parents = Py_BuildValue("s#s#", str, 20, str + 20, 20); |
|
488 | 491 | if (!parents) |
General Comments 0
You need to be logged in to leave comments.
Login now