summaryrefslogtreecommitdiff
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2026-08-12 06:39:43 +0000
committerJunio C Hamano <gitster@pobox.com>2026-08-12 07:18:23 -0700
commitdd6b35ff71a61c75af6f153fce14048c32d645cb (patch)
tree18eb5edb5b1877e0647f9e5eecefb685d8469241 /contrib/persistent-https
parente9019fcafe0040228b8631c30f97ae1adb61bcdc (diff)
serve: reject valueless promisor-remote capability
d460267613da (Add 'promisor-remote' capability to protocol v2, 2025-02-18) added a receive callback which passes the capability value directly to mark_promisor_remotes_as_accepted(). However, a client can send the capability name without an '=' or value, in which case get_capability() supplies NULL and strbuf_split_str() dereferences it. Reject the missing argument before parsing it, and add a test covering this case. Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions