Re: [PATCH] link_alt_odb_entry: fix read over array bounds reported by valgrind

2012-07-29 Thread Junio C Hamano
Heiko Voigt hvo...@hvoigt.net writes: pfxlen can be longer than the path in objdir when relative_base contains the path to gits object directory. s/gits// perhaps Git's, but I am not sure. Signed-off-by: Heiko Voigt hvo...@hvoigt.net --- sha1_file.c | 5 +++-- 1 file changed, 3

Re: [PATCH] link_alt_odb_entry: fix read over array bounds reported by valgrind

2012-07-29 Thread Junio C Hamano
Junio C Hamano gits...@pobox.com writes: Heiko Voigt hvo...@hvoigt.net writes: pfxlen can be longer than the path in objdir when relative_base contains the path to gits object directory. s/gits// perhaps Git's, but I am not sure. Signed-off-by: Heiko Voigt hvo...@hvoigt.net ---

[PATCH] link_alt_odb_entry: fix read over array bounds reported by valgrind

2012-07-28 Thread Heiko Voigt
pfxlen can be longer than the path in objdir when relative_base contains the path to gits object directory. Signed-off-by: Heiko Voigt hvo...@hvoigt.net --- sha1_file.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sha1_file.c b/sha1_file.c index 4ccaf7a..631d0dd