diff options
author | Jeff King <peff@peff.net> | 2017-07-16 06:45:32 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-07-17 14:55:43 -0700 |
commit | f7f6dc340ed4eb2bddc41993e112f8f18fcc1598 (patch) | |
tree | 4c44441f54672b63d29b137eeff9c69edc57442d /diff-delta.c | |
parent | Git 2.13.3 (diff) | |
download | tgif-f7f6dc340ed4eb2bddc41993e112f8f18fcc1598.tar.xz |
t: handle EOF in test_copy_bytes()
The test_copy_bytes() function claims to read up to N bytes,
or until it gets EOF. But we never handle EOF in our loop,
and a short input will cause perl to go into an infinite
loop of read() getting zero bytes.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff-delta.c')
0 files changed, 0 insertions, 0 deletions