Jeff King
7ce4c8f752
v0 protocol: use size_t for capability length/offset
...
When parsing server capabilities, we use "int" to store lengths and
offsets. At first glance this seems like a spot where our parser may be
confused by integer overflow if somebody sent us a malicious response.
In practice these strings are all bounded by the 64k limit of a
pkt-line, so using "int" is OK. However, it makes the code simpler to
audit if they just use size_t everywhere. Note that because we take
these parameters as pointers, this also forces many callers to update
their declared types.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2023-04-14 15:08:13 -07:00
..
2023-03-21 10:56:51 -07:00
2023-04-06 13:38:31 -07:00
2023-03-21 10:56:51 -07:00
2023-03-21 10:56:51 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-03-21 10:56:54 -07:00
2023-03-21 10:56:54 -07:00
2023-04-06 13:38:31 -07:00
2023-03-21 10:56:54 -07:00
2023-03-21 10:56:54 -07:00
2023-03-21 10:56:54 -07:00
2023-04-06 13:38:31 -07:00
2023-03-21 10:56:51 -07:00
2023-03-21 10:56:54 -07:00
2023-04-06 13:38:31 -07:00
2023-03-21 10:56:54 -07:00
2023-04-11 13:49:13 -07:00
2023-03-21 10:56:51 -07:00
2023-03-21 10:56:53 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-03-21 10:56:54 -07:00
2023-03-21 10:56:53 -07:00
2023-03-21 10:56:52 -07:00
2023-03-21 10:56:54 -07:00
2023-03-21 10:56:54 -07:00
2023-03-28 14:11:24 -07:00
2023-04-06 13:38:31 -07:00
2023-03-21 10:56:52 -07:00
2022-11-21 12:06:15 +09:00
2023-03-21 10:56:54 -07:00
2023-03-21 10:56:51 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:32 -07:00
2023-03-21 10:56:53 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-03-21 10:56:54 -07:00
2023-03-21 10:56:54 -07:00
2023-03-21 10:56:51 -07:00
2023-04-06 13:38:31 -07:00
2023-03-21 10:56:54 -07:00
2023-03-21 10:56:51 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-03-21 10:56:53 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-03-21 10:56:54 -07:00
2023-03-28 14:11:24 -07:00
2023-03-28 14:11:24 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-03-21 10:56:51 -07:00
2023-03-21 10:56:53 -07:00
2023-03-21 10:56:54 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-03-21 10:56:51 -07:00
2023-03-21 10:56:51 -07:00
2023-03-21 10:56:51 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-03-21 10:56:53 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-04-14 15:08:13 -07:00
2023-04-06 13:38:31 -07:00
2023-03-28 14:11:24 -07:00
2023-03-28 14:11:24 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-03-21 10:56:53 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-03-21 10:56:51 -07:00
2023-04-06 13:38:31 -07:00
2023-04-11 13:49:12 -07:00
2023-04-06 13:38:31 -07:00
2023-03-21 10:56:54 -07:00
2023-04-06 13:38:31 -07:00
2023-03-21 10:56:51 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-03-21 10:56:54 -07:00
2023-04-06 13:38:31 -07:00
2023-03-21 10:56:51 -07:00
2023-03-28 14:11:24 -07:00
2023-03-21 10:56:51 -07:00
2023-03-28 14:11:24 -07:00
2023-04-06 13:38:31 -07:00
2023-03-21 10:56:51 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-03-21 10:56:53 -07:00