author | Nicolas Pitre <nico@cam.org> | |
Fri, 29 Aug 2008 20:07:59 +0000 (16:07 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 30 Aug 2008 04:51:27 +0000 (21:51 -0700) | ||
commit | abeb40e5aa5b4a39799ae1caad241c8c7708053a | |
tree | 6fb35911f6750230ade15c390256bb237f5e0019 | tree | snapshot |
parent | 6ed7f25e95069a900b10f838b15639af3fac05d3 | commit | diff |
improve reliability of fixup_pack_header_footer()
Currently, this function has the potential to read corrupted pack data
from disk and give it a valid SHA1 checksum. Let's add the ability to
validate SHA1 checksum of existing data along the way, including before
and after any arbitrary point in the pack.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Currently, this function has the potential to read corrupted pack data
from disk and give it a valid SHA1 checksum. Let's add the ability to
validate SHA1 checksum of existing data along the way, including before
and after any arbitrary point in the pack.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-pack-objects.c | diff | blob | history | |
fast-import.c | diff | blob | history | |
index-pack.c | diff | blob | history | |
pack-write.c | diff | blob | history | |
pack.h | diff | blob | history |