mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 22:11:54 +02:00
21428: Travis: fix crash on bad compvalues call
This commit is contained in:
parent
a18270da29
commit
5af2ab3b9c
2 changed files with 7 additions and 1 deletions
|
@ -5,6 +5,11 @@
|
|||
* unposted: Completion/Unix/Command/_ruby: fix typo in first normal arg
|
||||
action
|
||||
|
||||
2005-07-11 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 21428: Travis Spencer: Src/Zle/computil.c: fix null pointer deref
|
||||
on wrong number of arguments to compvalues.
|
||||
|
||||
2005-07-10 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 21423: Travis Spencer: Completion/Unix/Command/_unexpand:
|
||||
|
|
|
@ -2660,7 +2660,8 @@ parse_cvdef(char *nam, char **args)
|
|||
char **oargs = args, sep = '\0', asep = '=', *name, *descr, *p, *q, **xor, c;
|
||||
int xnum, multi, vtype, hassep = 0, words = 0;
|
||||
|
||||
while (args[0][0] == '-' &&
|
||||
while (args && args[0] && args[1] &&
|
||||
args[0][0] == '-' &&
|
||||
(args[0][1] == 's' || args[0][1] == 'S' || args[0][1] == 'w') &&
|
||||
!args[0][2]) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue