comparison src/proto/cmdexpand.pro @ 19053:cec4da73951a v8.2.0087

patch 8.2.0087: crash in command line expansion when out of memory Commit: https://github.com/vim/vim/commit/61d7c0d52ca40ab8488c36e619d1e46503affd0b Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 5 14:38:40 2020 +0100 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 #5437)
author Bram Moolenaar <Bram@vim.org>
date Sun, 05 Jan 2020 14:45:04 +0100
parents 87a8760babec
children eb878f85967e
comparison
equal deleted inserted replaced
19052:c7102f0d810a 19053:cec4da73951a
6 int showmatches(expand_T *xp, int wildmenu); 6 int showmatches(expand_T *xp, int wildmenu);
7 char_u *sm_gettail(char_u *s); 7 char_u *sm_gettail(char_u *s);
8 char_u *addstar(char_u *fname, int len, int context); 8 char_u *addstar(char_u *fname, int len, int context);
9 void set_cmd_context(expand_T *xp, char_u *str, int len, int col, int use_ccline); 9 void set_cmd_context(expand_T *xp, char_u *str, int len, int col, int use_ccline);
10 int expand_cmdline(expand_T *xp, char_u *str, int col, int *matchcount, char_u ***matches); 10 int expand_cmdline(expand_T *xp, char_u *str, int col, int *matchcount, char_u ***matches);
11 int ExpandGeneric(expand_T *xp, regmatch_T *regmatch, int *num_file, char_u ***file, char_u *((*func)(expand_T *, int)), int escaped);
12 void globpath(char_u *path, char_u *file, garray_T *ga, int expand_options); 11 void globpath(char_u *path, char_u *file, garray_T *ga, int expand_options);
13 void f_getcompletion(typval_T *argvars, typval_T *rettv); 12 void f_getcompletion(typval_T *argvars, typval_T *rettv);
14 /* vim: set ft=c : */ 13 /* vim: set ft=c : */