diff --git a/src/version.c b/src/version.c index 10d931341..14b6d2868 100644 --- a/src/version.c +++ b/src/version.c @@ -695,6 +695,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1042, /**/ 1041, /**/ diff --git a/src/vim9class.c b/src/vim9class.c index 395d83a12..8f2f09f3b 100644 --- a/src/vim9class.c +++ b/src/vim9class.c @@ -441,7 +441,10 @@ class_object_index( for (int i = 0; i < cl->class_obj_method_count; ++i) { ufunc_T *fp = cl->class_obj_methods[i]; - if (STRNCMP(name, fp->uf_name, len) == 0 && fp->uf_name[len] == NUL) + // Use a separate pointer to avoid that ASAN complains about + // uf_name[] only being 4 characters. + char_u *ufname = (char_u *)fp->uf_name; + if (STRNCMP(name, ufname, len) == 0 && ufname[len] == NUL) { typval_T argvars[MAX_FUNC_ARGS + 1]; int argcount = 0;