summaryrefslogtreecommitdiff
path: root/base85.c
diff options
context:
space:
mode:
authorLibravatar Carlos Martín Nieto <cmn@elego.de>2011-11-28 11:48:12 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-11-28 11:30:34 -0800
commit284e3d280ea84957f5bedcb302848dbdcdbb9a62 (patch)
treee3db1809b4cbb311a7a1cec79023e0b6aa68adfa /base85.c
parentGit 1.7.7 (diff)
downloadtgif-284e3d280ea84957f5bedcb302848dbdcdbb9a62.tar.xz
convert: track state in LF-to-CRLF filter
There may not be enough space to store CRLF in the output. If we don't fill the buffer, then the filter will keep getting called with the same short buffer and will loop forever. Instead, always store the CR and record whether there's a missing LF if so we store it in the output buffer the next time the function gets called. Reported-by: Henrik Grubbström <grubba@roxen.com> Signed-off-by: Carlos Martín Nieto <cmn@elego.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'base85.c')
0 files changed, 0 insertions, 0 deletions