diff options
author | Jeff King <peff@peff.net> | 2010-02-01 08:39:03 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-02-06 10:55:03 -0800 |
commit | 8424981934c415bd20643de9cc932bd348dfb115 (patch) | |
tree | 13f59513d4c5c227bfac6d51c45e8c4e997379be /t/t8005-blame-i18n.sh | |
parent | docs: fix filter-branch example for quoted paths (diff) | |
download | tgif-8424981934c415bd20643de9cc932bd348dfb115.tar.xz |
Fix invalid read in quote_c_style_counted
This function did not work on strings that were not NUL-terminated. It
reads through a length-bounded string, searching for characters in need of
quoting. After we find one, we output the quoted character, then advance
our pointer to find the next one. However, we never decremented the
length, meaning we ended up looking at whatever random junk was stored
after the string.
This bug was not found by the existing tests because most code paths feed
a NUL-terminated string. The notable exception is a directory name being
fed by ls-tree.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t8005-blame-i18n.sh')
0 files changed, 0 insertions, 0 deletions