diff options
author | Heikki Orsila <heikki.orsila@iki.fi> | 2008-04-27 17:07:24 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-04-27 22:24:55 -0700 |
commit | f0ec47b8e7f46e17e6b6fe1cead728fa24477e43 (patch) | |
tree | d17f61f540d66383f99d0520e188f40d51db097f /t/t4025-hunk-header.sh | |
parent | Document functions xmemdupz(), xread() and xwrite() (diff) | |
download | tgif-f0ec47b8e7f46e17e6b6fe1cead728fa24477e43.tar.xz |
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>
Diffstat (limited to 't/t4025-hunk-header.sh')
0 files changed, 0 insertions, 0 deletions