summaryrefslogtreecommitdiff
path: root/git-gui/lib/commit.tcl
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2023-08-31 02:22:08 -0400
committerJunio C Hamano <gitster@pobox.com>2023-08-31 15:51:08 -0700
commit7b61bd18b13223064db01d89e3b8af106661efd5 (patch)
treea141fa6fa4bd6fad3ded7cb5b52aaaa12d64e2d4 /git-gui/lib/commit.tcl
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 'git-gui/lib/commit.tcl')
0 files changed, 0 insertions, 0 deletions