author | Pavel Roskin <proski@gnu.org> | |
Wed, 21 Dec 2005 20:35:48 +0000 (15:35 -0500) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 21 Dec 2005 21:00:31 +0000 (13:00 -0800) | ||
commit | 6689f08735d08a057f8d6f91af98b04960afa517 | |
tree | 28c007b949e0956b712f0900b690c9b12db99ccb | tree | snapshot |
parent | 9470657ad0d0472e3e3c2e352334f60e7bd777c1 | commit | diff |
An off-by-one bug found by valgrind
Insufficient memory is allocated in index-pack.c to hold the *.idx name.
One more byte should be allocated to hold the terminating 0.
Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Insufficient memory is allocated in index-pack.c to hold the *.idx name.
One more byte should be allocated to hold the terminating 0.
Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
index-pack.c | diff | blob | history |