Skip to content

Commit

Permalink
vim-patch:8.2.0087: crash in command line expansion when out of memory
Browse files Browse the repository at this point in the history
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)
vim/vim@61d7c0d

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)
vim/vim@9c24cd1

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)
vim/vim@e1be118
  • Loading branch information
janlazo committed Oct 25, 2020
1 parent b59b8dd commit 59a8b7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nvim/ex_getln.c
Expand Up @@ -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,
Expand Down

0 comments on commit 59a8b7f

Please sign in to comment.