mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 9.0.1701: vim9 crash when class member overridden
Problem: vim9 crash when class member overridden Solution: Use method_count field instead closes: #12676 closes: #12677 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
This commit is contained in:
committed by
Christian Brabandt
parent
32f586eec1
commit
57a02ccf4c
@@ -897,7 +897,7 @@ early_ret:
|
||||
if (!done && extends_cl != NULL)
|
||||
{
|
||||
for (int cl_i = 0;
|
||||
cl_i < extends_cl->class_obj_member_count; ++cl_i)
|
||||
cl_i < extends_cl->class_obj_method_count; ++cl_i)
|
||||
{
|
||||
if (STRCMP(ifcl->class_obj_methods[if_i]->uf_name,
|
||||
extends_cl->class_obj_methods[cl_i]->uf_name)
|
||||
|
Reference in New Issue
Block a user