diff options
| author | Elijah Newren <newren@gmail.com> | 2026-08-12 06:39:43 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-08-12 07:18:23 -0700 |
| commit | dd6b35ff71a61c75af6f153fce14048c32d645cb (patch) | |
| tree | 18eb5edb5b1877e0647f9e5eecefb685d8469241 /contrib/persistent-https/socket.go | |
| parent | e9019fcafe0040228b8631c30f97ae1adb61bcdc (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/socket.go')
0 files changed, 0 insertions, 0 deletions
