diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2020-06-01 23:53:55 +0100 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2020-06-01 23:56:18 +0100 |
| commit | aa8b2c0f6068454d30e9b0f20f424311337a37f1 (patch) | |
| tree | 131e1fa59d0dd380af1e3a579670abf99346d0fc /tests/diff/parse.c | |
| parent | 570f0340f06f49b06ff536463cec8a2e2411b948 (diff) | |
| download | libgit2-aa8b2c0f6068454d30e9b0f20f424311337a37f1.tar.gz | |
httpclient: don't read more than the client wants
When `git_http_client_read_body` is invoked, it provides the size of the
buffer that can be read into. This will be set as the parser context's
`output_size` member. Use this as an upper limit on our reads, and
ensure that we do not read more than the client requests.
Diffstat (limited to 'tests/diff/parse.c')
0 files changed, 0 insertions, 0 deletions
