From 59a8b7fcd957345f8fc27c18f7a7f3e3979f3793 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sat, 24 Oct 2020 15:57:59 -0400 Subject: [PATCH] vim-patch:8.2.0087: crash in command line expansion when out of memory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: Crash in command line expansion when out of memory. Solution: Check for NULL pointer. Also make ExpandGeneric() static. (Dominique Pelle, closes vim/vim#5437) https://github.com/vim/vim/commit/61d7c0d52ca40ab8488c36e619d1e46503affd0b N/A patches for version.c: vim-patch:8.2.1892: valgrind warns for using uninitialized access in tests Problem: Valgrind warns for using uninitialized access in tests. Solution: Fix condition for breaking out of loop. (Dominique Pellé, closes vim/vim#7187) https://github.com/vim/vim/commit/9c24cd11e2048e16e25271a7a7dbef4593890a18 vim-patch:8.2.1896: valgrind warns for using uninitialized memory Problem: Valgrind warns for using uninitialized memory. Solution: NUL terminate the SmcOpenConnection() error message. (Dominique Pellé, closes vim/vim#7194) https://github.com/vim/vim/commit/e1be11864d1f4383171e3af3eb77e61d41140c4e --- src/nvim/ex_getln.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index f9ca7bfa42a438..940f446a7b662e 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -5193,7 +5193,7 @@ ExpandFromContext ( * obtain strings, one by one. The strings are matched against a regexp * program. Matching strings are copied into an array, which is returned. */ -void ExpandGeneric( +static void ExpandGeneric( expand_T *xp, regmatch_T *regmatch, int *num_file,