summaryrefslogtreecommitdiffstats
path: root/src/typval.c
diff options
context:
space:
mode:
authorErnie Rael <errael@raelity.com>2024-06-22 11:12:00 +0200
committerChristian Brabandt <cb@256bit.org>2024-06-22 11:12:00 +0200
commitf0e691442005c12a7c35746048f0942f44e23a4c (patch)
tree8fc3b0b003fd8d76b5da30f6f4db866a27c7abe1 /src/typval.c
parent7002c055d560ae0b3bb1e24ad409390a5443daad (diff)
patch 9.1.0513: Vim9: segfault with object comparisonv9.1.0513
Problem: Vim9: segfault with object comparisons Solution: increment recusive_cnt before calling typval_compare_object() (Ernie Rael) closes: #15073 Signed-off-by: Ernie Rael <errael@raelity.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/typval.c')
-rw-r--r--src/typval.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/typval.c b/src/typval.c
index 6a73719b71..76ce405a70 100644
--- a/src/typval.c
+++ b/src/typval.c
@@ -2114,7 +2114,9 @@ tv_equal(
return tv1->vval.v_class == tv2->vval.v_class;
case VAR_OBJECT:
+ ++recursive_cnt;
(void)typval_compare_object(tv1, tv2, EXPR_EQUAL, ic, &r);
+ --recursive_cnt;
return r;
case VAR_PARTIAL: