Re: [PATCH] negotiator/skipping: avoid stack overflow
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 25, 2022, 23:52 UTC
- Message-ID
- <xmqqilk7mpg8.fsf@gitster.g>
- In-Reply-To
- <20221025232934.1504445-1-jonathantanmy@google.com>
Jonathan Tan <jonathantanmy@google.com> writes:
> mark_common() in negotiator/skipping.c may overflow the stack due to > recursive function calls. Avoid this by instead recursing using a > heap-allocated data structure.
Very straight-forward. I think we've done quite a many of these in various places by now ;-)