Re: [PATCH 1/9] stream_blob_to_fd: detect errors reading from stream

2013-03-26 Thread Junio C Hamano
Jeff King writes: > 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, whic

[PATCH 1/9] stream_blob_to_fd: detect errors reading from stream

2013-03-25 Thread Jeff King
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). Sign