author | Nicolas Pitre <nico@cam.org> | |
Wed, 29 Oct 2008 23:02:49 +0000 (19:02 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 2 Nov 2008 23:22:35 +0000 (15:22 -0800) | ||
commit | 08698b1e32bc414f214b7300b40c30a30d9ecd1c | |
tree | 1fc01119e8590049d0f5e5949b4b6a9d83db75eb | tree | snapshot |
parent | 03d660150cbc80cd7d2ec90c3c4e6ce563295e3a | commit | diff |
make find_pack_revindex() aware of the nasty world
It currently calls die() whenever given offset is not found thinking
that such thing should never happen. But this offset may come from a
corrupted pack whych _could_ happen and not be found. Callers should
deal with this possibility gracefully instead.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
It currently calls die() whenever given offset is not found thinking
that such thing should never happen. But this offset may come from a
corrupted pack whych _could_ happen and not be found. Callers should
deal with this possibility gracefully instead.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-pack-objects.c | diff | blob | history | |
pack-revindex.c | diff | blob | history | |
sha1_file.c | diff | blob | history |