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)
61d7c0d52c

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)
9c24cd11e2

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)
e1be11864d
This commit is contained in:
Jan Edmund Lazo
2020-10-24 15:57:59 -04:00
parent b59b8dd5b5
commit 59a8b7fcd9

View File

@@ -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,