forked from aniani/vim
patch 9.1.0513: Vim9: segfault with object comparison
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>
This commit is contained in:
committed by
Christian Brabandt
parent
7002c055d5
commit
f0e6914420
@@ -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:
|
||||
|
Reference in New Issue
Block a user