Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2023-08-31 09:22:08 +0300
committerJunio C Hamano <gitster@pobox.com>2023-09-01 01:51:08 +0300
commit7b61bd18b13223064db01d89e3b8af106661efd5 (patch)
treea141fa6fa4bd6fad3ded7cb5b52aaaa12d64e2d4 /environment.c
parent670a1dadc7d98b774cc0f870a4c75f57d1cfa9d4 (diff)
tree-diff: respect max_allowed_tree_depth
When diffing trees, we recurse to handle subtrees. That means we may run out of stack space and segfault. Let's teach this code path about core.maxTreeDepth in order to fail more gracefully. As with the previous patch, we have no way to return an error (and other tree-loading problems would just cause us to die()). So we'll likewise call die() if we exceed the maximum depth. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'environment.c')
0 files changed, 0 insertions, 0 deletions