diff options
| author | Jeff King <peff@peff.net> | 2013-03-25 16:16:50 -0400 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2013-03-27 13:46:47 -0700 |
| commit | 45d4bdae5906cfe6b7cb1ba1cec82fd80381e07e (patch) | |
| tree | 1ff97a633a56df704998bdc7ec41c15ee18e05fa /contrib/persistent-https | |
| parent | Second wave of topics toward 1.8.3 (diff) | |
| download | git-45d4bdae5906cfe6b7cb1ba1cec82fd80381e07e.tar.gz git-45d4bdae5906cfe6b7cb1ba1cec82fd80381e07e.zip | |
stream_blob_to_fd: detect errors reading from stream
We call read_istream, but never check its return value for
errors. This can lead to us looping infinitely, as we just
keep trying to write "-1" bytes (and we do not notice the
error, as we simply check that write_in_full reports the
same number of bytes we fed it, which of course is also -1).
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions
