diff options
author | Jim Meyering <jim@meyering.net> | 2010-01-18 22:55:07 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-01-18 17:01:29 -0800 |
commit | 34f3999206e8ea41b9e4cf48e30ab1149e01d8a5 (patch) | |
tree | cad6e7beba3cac964a29f43a28fa38b63b0a4376 /Documentation/technical/api-gitattributes.txt | |
parent | Git 1.6.5.7 (diff) | |
download | tgif-34f3999206e8ea41b9e4cf48e30ab1149e01d8a5.tar.xz |
grep: NUL terminate input from a file
Internally "git grep" runs regexec(3) that expects its input string
to be NUL terminated. When searching inside blob data, read_sha1_file()
automatically gives such a buffer, but builtin-grep.c forgot to put
the NUL at the end, even though it allocated enough space for it.
Signed-off-by: Jim Meyering <meyering@redhat.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/technical/api-gitattributes.txt')
0 files changed, 0 insertions, 0 deletions