Re: [PATCH] Avoid infinite loop in malformed packfiles
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 24, 2020, 21:22 UTC
- Message-ID
- <xmqqft8b3fj4.fsf@gitster.c.googlers.com>
- In-Reply-To
- <20200824205231.GA787628@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
> It may be hard to test, as I suspect modern versions of Git are not > happy to create such a deep chain. We could test with a lowered value of > the config option, though.
Yes, that was what I meant. Start from a 1KB text, create 50 revisions of the file by adding a single line at its end at a time, pack with depth limit of 100, and then see "git log -p" die when the allowed max lowered to 10, or something like that.