Show More
@@ -127,11 +127,11 b' static int find_lines(lazymanifest *self' | |||||
127 | if (!next) { |
|
127 | if (!next) { | |
128 | return MANIFEST_MALFORMED; |
|
128 | return MANIFEST_MALFORMED; | |
129 | } |
|
129 | } | |
130 |
if ((next - data) < |
|
130 | if ((next - data) < 42) { | |
131 |
/* We should have at least |
|
131 | /* We should have at least 42 bytes in a line: | |
132 | 1 byte filename |
|
132 | 1 byte filename | |
133 | 1 NUL |
|
133 | 1 NUL | |
134 |
|
|
134 | 40 bytes of hash | |
135 | so we can give up here. |
|
135 | so we can give up here. | |
136 | */ |
|
136 | */ | |
137 | return MANIFEST_TOO_SHORT_LINE; |
|
137 | return MANIFEST_TOO_SHORT_LINE; |
General Comments 0
You need to be logged in to leave comments.
Login now