summaryrefslogtreecommitdiff
path: root/Documentation/cmd-list.perl
diff options
context:
space:
mode:
authorLibravatar Johannes Schindelin <johannes.schindelin@gmx.de>2014-09-11 16:26:33 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-09-11 10:44:01 -0700
commit4d0d89755e82c40df88cf94d84031978f8eac827 (patch)
treebbc902cadf942e58e953a987ec44b72def30227c /Documentation/cmd-list.perl
parentfsck_object(): allow passing object data separately from the object itself (diff)
downloadtgif-4d0d89755e82c40df88cf94d84031978f8eac827.tar.xz
Make sure fsck_commit_buffer() does not run out of the buffer
So far, we assumed that the buffer is NUL terminated, but this is not a safe assumption, now that we opened the fsck_object() API to pass a buffer directly. So let's make sure that there is at least an empty line in the buffer. That way, our checks would fail if the empty line was encountered prematurely, and consequently we can get away with the current string comparisons even with non-NUL-terminated buffers are passed to fsck_object(). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/cmd-list.perl')
0 files changed, 0 insertions, 0 deletions