From: Heikki Orsila Date: Sun, 27 Apr 2008 14:07:24 +0000 (+0300) Subject: Die for an early EOF in a file reading loop X-Git-Tag: v1.5.6-rc0~117 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/f0ec47b8e7f46e17e6b6fe1cead728fa24477e43?hp=f0ec47b8e7f46e17e6b6fe1cead728fa24477e43 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 Signed-off-by: Junio C Hamano ---