0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

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:
Ernie Rael
2024-06-23 09:54:45 +02:00
committed by Christian Brabandt
parent 7b29cc97d6
commit 8625714ac1
3 changed files with 18 additions and 0 deletions

View File

@@ -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;