From: Junio C Hamano Date: Wed, 03 Oct 2007 05:55:57 GMT Subject: Re: [PATCH] Must not modify the_index.cache as it may be passed to realloc at some point. Message-ID: <7vtzp8g2s2.fsf@gitster.siamese.dyndns.org> In-Reply-To: <1191390255.16292.2.camel@koto.keithp.com> Keith Packard writes: > The index cache is not static, growing as new entries are added. If entries > are added after prune_cache is called, cache will no longer point at the > base of the allocation, and realloc will not be happy. Thanks for catching this. This code originally was perfectly Ok, but I broke it with the overlay_tree() change.