mirror of
https://github.com/git/git.git
synced 2026-01-12 13:53:11 +09:00
Merge branch 'js/tag'
* js/tag: verify-tag: also grok CR/LFs in the tag signature
This commit is contained in:
commit
07efafef2b
@ -35,7 +35,7 @@ static int run_gpg_verify(const char *buf, unsigned long size, int verbose)
|
||||
|
||||
/* find the length without signature */
|
||||
len = 0;
|
||||
while (len < size && prefixcmp(buf + len, PGP_SIGNATURE "\n")) {
|
||||
while (len < size && prefixcmp(buf + len, PGP_SIGNATURE)) {
|
||||
eol = memchr(buf + len, '\n', size - len);
|
||||
len += eol ? eol - (buf + len) + 1 : size - len;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user