patch 9.1.0515: Vim9: segfault in object_equal()
Problem: Vim9: segfault in object_equal()
Solution: test for object pointer being NULL, before dereferencing them
(Ernie Rael)
closes: #15085
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
7b29cc97d6
commit
8625714ac1
@ -3855,6 +3855,8 @@ object_equal(
|
||||
|
||||
if (o1 == o2)
|
||||
return TRUE;
|
||||
if (o1 == NULL || o2 == NULL)
|
||||
return FALSE;
|
||||
|
||||
cl1 = o1->obj_class;
|
||||
cl2 = o2->obj_class;
|
||||
|
||||
Reference in New Issue
Block a user