Re: [PATCH] line-log.c: prevent crash during union of too many ranges
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 3, 2017, 19:19 UTC
- Message-ID
- <xmqqlgsm88yh.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <20170302172902.16850-1-allan.x.xavier@oracle.com>
Allan Xavier <allan.x.xavier@oracle.com> writes:
> The existing implementation of range_set_union does not correctly > reallocate memory, leading to a heap overflow when it attempts to union > more than 24 separate line ranges. > ...
I'll add "Reviewed-by: Jeff King <peff@peff.net>" and queue, as I know we already reviewed the change.
Thanks.