author | Heikki Orsila <heikki.orsila@iki.fi> | |
Sun, 27 Apr 2008 14:07:24 +0000 (17:07 +0300) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 28 Apr 2008 05:24:55 +0000 (22:24 -0700) | ||
commit | f0ec47b8e7f46e17e6b6fe1cead728fa24477e43 | |
tree | d17f61f540d66383f99d0520e188f40d51db097f | tree | snapshot |
parent | e8729f5380788855943c69f749eb5e276c3b8310 | commit | diff |
Die for an early EOF in a file reading loop
The resulting data is zero terminated after the read loop, but
the subsequent loop that scans for '\n' will overrun the buffer.
Signed-off-by: Heikki Orsila <heikki.orsila@iki.fi>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The resulting data is zero terminated after the read loop, but
the subsequent loop that scans for '\n' will overrun the buffer.
Signed-off-by: Heikki Orsila <heikki.orsila@iki.fi>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
combine-diff.c | diff | blob | history |