* 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:
@ -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]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user