From: Bram Moolenaar Date: Sat, 11 Aug 2018 17:02:22 +0000 (+0200) Subject: patch 8.1.0273: invalid memory access when using 'incsearch' X-Git-Tag: v8.1.0273 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=ef73a28401cde680dc0d02d4b0fb19ed659ec1d3;p=thirdparty%2Fvim.git patch 8.1.0273: invalid memory access when using 'incsearch' Problem: Invalid memory access when using 'incsearch'. Solution: Reset "patlen" when using previous search pattern. --- diff --git a/src/ex_getln.c b/src/ex_getln.c index c2eb0a8dda..3fb9c86233 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -504,7 +504,11 @@ may_adjust_incsearch_highlighting( return FAIL; if (firstc == ccline.cmdbuff[skiplen]) + { pat = last_search_pattern(); + skiplen = 0; + patlen = STRLEN(pat); + } else pat = ccline.cmdbuff + skiplen; diff --git a/src/version.c b/src/version.c index 68df1ecadc..510ce45d04 100644 --- a/src/version.c +++ b/src/version.c @@ -794,6 +794,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 273, /**/ 272, /**/