We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffdaca9 commit 4ae0057Copy full SHA for 4ae0057
2 files changed
src/version.c
@@ -695,6 +695,8 @@ static char *(features[]) =
695
696
static int included_patches[] =
697
{ /* Add new patch number below this line */
698
+/**/
699
+ 1042,
700
/**/
701
1041,
702
src/vim9class.c
@@ -441,7 +441,10 @@ class_object_index(
441
for (int i = 0; i < cl->class_obj_method_count; ++i)
442
{
443
ufunc_T *fp = cl->class_obj_methods[i];
444
- if (STRNCMP(name, fp->uf_name, len) == 0 && fp->uf_name[len] == NUL)
+ // Use a separate pointer to avoid that ASAN complains about
445
+ // uf_name[] only being 4 characters.
446
+ char_u *ufname = (char_u *)fp->uf_name;
447
+ if (STRNCMP(name, ufname, len) == 0 && ufname[len] == NUL)
448
449
typval_T argvars[MAX_FUNC_ARGS + 1];
450
int argcount = 0;
0 commit comments