mirror of
https://github.com/git/git.git
synced 2026-01-10 01:56:42 +00:00
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
This commit is contained in:
@@ -320,7 +320,7 @@ static struct ref *handshake(struct transport *transport, int for_push,
|
||||
struct git_transport_data *data = transport->data;
|
||||
struct ref *refs = NULL;
|
||||
struct packet_reader reader;
|
||||
int sid_len;
|
||||
size_t sid_len;
|
||||
const char *server_sid;
|
||||
|
||||
connect_setup(transport, for_push);
|
||||
|
||||
Reference in New Issue
Block a user