mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 09:26:30 +00:00
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:
@@ -5193,7 +5193,7 @@ ExpandFromContext (
|
|||||||
* obtain strings, one by one. The strings are matched against a regexp
|
* obtain strings, one by one. The strings are matched against a regexp
|
||||||
* program. Matching strings are copied into an array, which is returned.
|
* program. Matching strings are copied into an array, which is returned.
|
||||||
*/
|
*/
|
||||||
void ExpandGeneric(
|
static void ExpandGeneric(
|
||||||
expand_T *xp,
|
expand_T *xp,
|
||||||
regmatch_T *regmatch,
|
regmatch_T *regmatch,
|
||||||
int *num_file,
|
int *num_file,
|
||||||
|
Reference in New Issue
Block a user