##// END OF EJS Templates
parsers: detect short records (SEC)...
Matt Mackall -
r28657:b9714d95 stable
parent child Browse files
Show More
@@ -215,10 +215,10 b' static struct flist *decode(const char *'
215 lt->start = getbe32(bin + pos);
215 lt->start = getbe32(bin + pos);
216 lt->end = getbe32(bin + pos + 4);
216 lt->end = getbe32(bin + pos + 4);
217 lt->len = getbe32(bin + pos + 8);
217 lt->len = getbe32(bin + pos + 8);
218 if (lt->start > lt->end)
219 break; /* sanity check */
220 lt->data = bin + pos + 12;
218 lt->data = bin + pos + 12;
221 pos += 12 + lt->len;
219 pos += 12 + lt->len;
220 if (lt->start > lt->end || lt->len < 0)
221 break; /* sanity check */
222 lt++;
222 lt++;
223 }
223 }
224
224
General Comments 0
You need to be logged in to leave comments. Login now