* libc/bsdlib.cc (forkpty): Close master and slave if fork fails to

avoid resource leak (CID 59997).
	* libc/fts.c: Update to FreeBSD version 1.39 (CID 59947).
	* libc/minires.c (minires_get_search): Fix out-of-bounds read from
	words array (CID 59937).
This commit is contained in:
Corinna Vinschen
2014-05-22 09:45:17 +00:00
parent 59ce289027
commit ed2cfab440
4 changed files with 85 additions and 111 deletions

View File

@ -77,7 +77,7 @@ void minires_get_search(char * string, res_state statp)
ptr += sizes[j];
DPRINTF(debug, "search \"%s\"\n", words[j]);
}
else
else if (j < MAXDNSRCH + 1)
DPRINTF(debug, "no space for \"%s\"\n", words[j]);
}
}