diff options
author | Junio C Hamano <gitster@pobox.com> | 2023-04-25 22:56:20 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-04-25 22:56:20 +0200 |
commit | 80d268f30957e99904ceb087dff0b7ed6a61155a (patch) | |
tree | e5fb4e66ed6139203d018fc201bf5624444224ce /send-pack.c | |
parent | Merge branch 'en/header-split-cache-h' (diff) | |
parent | v0 protocol: use size_t for capability length/offset (diff) | |
download | git-80d268f30957e99904ceb087dff0b7ed6a61155a.tar.xz git-80d268f30957e99904ceb087dff0b7ed6a61155a.zip |
Merge branch 'jk/protocol-cap-parse-fix'
The code to parse capability list for v0 on-wire protocol fell into
an infinite loop when a capability appears multiple times, which
has been corrected.
* jk/protocol-cap-parse-fix:
v0 protocol: use size_t for capability length/offset
t5512: test "ls-remote --heads --symref" filtering with v0 and v2
t5512: allow any protocol version for filtered symref test
t5512: add v2 support for "ls-remote --symref" test
v0 protocol: fix sha1/sha256 confusion for capabilities^{}
t5512: stop referring to "v1" protocol
v0 protocol: fix infinite loop when parsing multi-valued capabilities
Diffstat (limited to 'send-pack.c')
-rw-r--r-- | send-pack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/send-pack.c b/send-pack.c index 7ebd1b3507..2089143555 100644 --- a/send-pack.c +++ b/send-pack.c @@ -539,7 +539,7 @@ int send_pack(struct send_pack_args *args, die(_("the receiving end does not support this repository's hash algorithm")); if (args->push_cert != SEND_PACK_PUSH_CERT_NEVER) { - int len; + size_t len; push_cert_nonce = server_feature_value("push-cert", &len); if (push_cert_nonce) { reject_invalid_nonce(push_cert_nonce, len); |