From: Junio C Hamano <gitster@pobox.com>
To: Keith Packard <keithp@keithp.com>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: [PATCH] Must not modify the_index.cache as it may be passed to realloc at some point.
Date: Tue, 02 Oct 2007 22:55:57 -0700 [thread overview]
Message-ID: <7vtzp8g2s2.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <1191390255.16292.2.camel@koto.keithp.com> (Keith Packard's message of "Tue, 02 Oct 2007 22:44:15 -0700")
Keith Packard <keithp@keithp.com> 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.
next prev parent reply other threads:[~2007-10-03 5:56 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-03 5:44 [PATCH] Must not modify the_index.cache as it may be passed to realloc at some point Keith Packard
2007-10-03 5:55 ` Junio C Hamano [this message]
2007-10-03 7:03 ` [PATCH] Add test case for ls-files --with-head Carl Worth
2007-10-03 12:09 ` Johannes Sixt
2007-10-03 15:36 ` Johannes Schindelin
2007-10-03 15:52 ` David Kastrup
2007-10-03 16:06 ` Carl Worth
2007-10-03 16:15 ` David Kastrup
2007-10-03 20:21 ` Jeff King
2007-10-03 21:39 ` Johannes Schindelin
2007-10-03 21:47 ` Junio C Hamano
2007-10-03 22:11 ` Jeff King
2007-10-03 19:29 ` Junio C Hamano
2007-10-03 15:50 ` Carl Worth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vtzp8g2s2.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=keithp@keithp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).