]> git.ipfire.org Git - thirdparty/git.git/commit - sha1_name.c
sha1_name: fix segfault caused by invalid index access
authorMarkus Heidelberg <markus.heidelberg@web.de>
Sun, 28 Feb 2010 15:49:15 +0000 (16:49 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 28 Feb 2010 18:32:06 +0000 (10:32 -0800)
commit77e8466fb98b95ea07d386d64073d0bc6304b37f
tree12a70eb49e37550f5f059fa95e58a8351a6672b7
parent64da6e20de1f2246e2d8d9d85e53ca3cbf393212
sha1_name: fix segfault caused by invalid index access

The code to see if user input "git show :path" makes sense tried to access
the index without properly checking the array bound.

Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1_name.c