Submitter | phabricator |
---|---|
Date | Nov. 30, 2018, 12:07 p.m. |
Message ID | <022dd147599880380bb4a4bf503be2a3@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/36877/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/mercurial/cext/manifest.c b/mercurial/cext/manifest.c --- a/mercurial/cext/manifest.c +++ b/mercurial/cext/manifest.c @@ -127,11 +127,11 @@ if (!next) { return MANIFEST_MALFORMED; } - if ((next - data) < 22) { - /* We should have at least 22 bytes in a line: + if ((next - data) < 42) { + /* We should have at least 42 bytes in a line: 1 byte filename 1 NUL - 20 bytes of hash + 40 bytes of hash so we can give up here. */ return MANIFEST_TOO_SHORT_LINE;