aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-10-24 15:57:59 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-10-24 23:30:23 -0400
commit59a8b7fcd957345f8fc27c18f7a7f3e3979f3793 (patch)
treed42b5956757ac03d2277fa70486b69181faf09c8 /src
parentb59b8dd5b5fbb7f1b2695fd3effb507e0e059a85 (diff)
downloadrneovim-59a8b7fcd957345f8fc27c18f7a7f3e3979f3793.tar.gz
rneovim-59a8b7fcd957345f8fc27c18f7a7f3e3979f3793.tar.bz2
rneovim-59a8b7fcd957345f8fc27c18f7a7f3e3979f3793.zip
vim-patch:8.2.0087: crash in command line expansion when out of memory
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
Diffstat (limited to 'src')
-rw-r--r--src/nvim/ex_getln.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
index f9ca7bfa42..940f446a7b 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,