##// END OF EJS Templates
manifest: reject lines shorter than 42 bytes, not 22...
Augie Fackler -
r40801:7e6834ad default
parent child Browse files
Show More
@@ -127,11 +127,11 b' static int find_lines(lazymanifest *self'
127 127 if (!next) {
128 128 return MANIFEST_MALFORMED;
129 129 }
130 if ((next - data) < 22) {
131 /* We should have at least 22 bytes in a line:
130 if ((next - data) < 42) {
131 /* We should have at least 42 bytes in a line:
132 132 1 byte filename
133 133 1 NUL
134 20 bytes of hash
134 40 bytes of hash
135 135 so we can give up here.
136 136 */
137 137 return MANIFEST_TOO_SHORT_LINE;
General Comments 0
You need to be logged in to leave comments. Login now