author | Shawn O. Pearce <spearce@spearce.org> | |
Tue, 10 Feb 2009 21:36:12 +0000 (13:36 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 10 Feb 2009 23:30:59 +0000 (15:30 -0800) | ||
commit | 3d20c636af05c44a6ff4df9309c2bca108ee149b | |
tree | 97e2732bcb3039de582f9118077a43a1dc6e0472 | tree | snapshot |
parent | ab2fdb3b62589477bde0cd0af8239bee510c3488 | commit | diff |
Clear the delta base cache during fast-import checkpoint
Otherwise we may reuse the same memory address for a totally
different "struct packed_git", and a previously cached object from
the prior occupant might be returned when trying to unpack an object
from the new pack.
Found-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Otherwise we may reuse the same memory address for a totally
different "struct packed_git", and a previously cached object from
the prior occupant might be returned when trying to unpack an object
from the new pack.
Found-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h | diff | blob | history | |
fast-import.c | diff | blob | history | |
sha1_file.c | diff | blob | history |