diff options
author | Joseph Vusich <jvusich@amazon.com> | 2018-04-02 21:31:40 +0000 |
---|---|---|
committer | jvusich <jvusich@users.noreply.github.com> | 2018-04-02 23:36:59 -0700 |
commit | b4177b89c08b3cd7c791f223b4828b4a81a62312 (patch) | |
tree | d75d3fb55548d3cdbd87cc7e5c7cbe5d1baa3b8d /_examples/push | |
parent | 2cbff8d8ffa42dd1b399b3c94d094bdb2d1cdf5c (diff) | |
download | go-git-b4177b89c08b3cd7c791f223b4828b4a81a62312.tar.gz |
plumbing: format: pktline, Accept oversized pkt-lines up to 65524 bytes
The canonical Git client successfully decodes sideband packets up to
65524 bytes in length (4-byte header + 65520-byte payload). The Git
protocol documentation was updated in August 2016 to reduce the maximum
payload size to 65516 bytes, however old implementations still exist in
the wild emitting 65520-byte payloads.
As there is no technical difficulty with accepting (not emitting) larger
payload sizes, this change adjusts the limit check to allow successful
decoding of packets up to 65524 bytes. This change increases
compatibility with the current canonical Git implementation.
Doc changes from August 2016:
https://github.com/git/git/commit/7841c4801ce51f1f62d376d164372e8677c6bc94#diff-52695c8fe91b78b70cea44562ae28297L67
Current packet buffer size is still LARGE_PACKET_MAX (+1 null):
https://github.com/git/git/blob/468165c1d8a442994a825f3684528361727cd8c0/sideband.c#L24
https://github.com/git/git/blob/468165c1d8a442994a825f3684528361727cd8c0/sideband.c#L36
LARGE_PACKET_MAX definition:
https://github.com/git/git/blob/468165c1d8a442994a825f3684528361727cd8c0/pkt-line.h#L100
Signed-off-by: Joseph Vusich <jvusich@amazon.com>
Diffstat (limited to '_examples/push')
0 files changed, 0 insertions, 0 deletions