1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-01 05:16:05 +01:00

35872: protect against NULL pointers in unmeta

This commit is contained in:
Peter Stephenson 2015-07-23 10:04:09 +01:00
parent 28a962f557
commit bbd4cae6ad
2 changed files with 6 additions and 1 deletions

View file

@ -1,5 +1,7 @@
2015-07-23 Peter Stephenson <p.stephenson@samsung.com>
* 35872: Src/utils.c: protect against NULL pointers in unmeta().
* 35849: Src/exec.c, Src/jobs.c, Test/D03procsubst.ztst: close
file descriptors from process substitution in parent after
fork.

View file

@ -4401,7 +4401,10 @@ unmeta(const char *file_name)
char *p;
const char *t;
int newsz, meta;
if (!file_name)
return NULL;
meta = 0;
for (t = file_name; *t; t++) {
if (*t == Meta)