mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-02-24 11:51:19 +01:00
25860: avoid possible NULL dereferencing in bld_parts.
This commit is contained in:
parent
f444818f20
commit
430e54ddc4
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-10-12 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 25860: Src/Zle/compmatch.c: avoid possible NULL dereferencing in
|
||||
bld_parts.
|
||||
|
||||
2008-10-12 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
||||
* unposted, c.f. 25848: Test/comptest: attempt to sanitize
|
||||
|
|
|
@ -1553,7 +1553,8 @@ bld_parts(char *str, int len, int plen, Cline *lp, Cline *lprem)
|
|||
*lprem = NULL;
|
||||
}
|
||||
|
||||
n->next = NULL;
|
||||
if (n)
|
||||
n->next = NULL;
|
||||
|
||||
if (lp)
|
||||
*lp = n;
|
||||
|
|
Loading…
Reference in a new issue