Code

sanity check in add_packed_git()
authorPavel Roskin <proski@gnu.org>
Wed, 21 Dec 2005 23:47:09 +0000 (18:47 -0500)
committerJunio C Hamano <junkio@cox.net>
Thu, 22 Dec 2005 01:05:09 +0000 (17:05 -0800)
commitf4a11066cfb70c49fddbca7f95aa0fedcee53cca
treecf52739b40edd18594f9b5dc3e7e6b6d5a4ebfa4
parent8ac4838af428a2a32498b3e8d13295eb714654b4
sanity check in add_packed_git()

add_packed_git() tries to get the pack SHA1 by parsing its name.  It may
access uninitialized memory for packs with short names.

Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
sha1_file.c