* spawn.cc (find_exec): Initialize err (CID 60111).

* strace.cc (strace::activate): Fix potential buffer overrun (CID 59938)
	* syscalls.cc (popen): Close parent pipe descriptor via fclosing fp on
	error to avoid resource leak (CID 59981).
	* thread.cc (pthread::exit): Avoid accessing cygtls member after
	deleting "this" (CID 60217).
This commit is contained in:
Corinna Vinschen
2014-06-23 19:05:15 +00:00
parent cf06a0b18c
commit 8431e478d2
5 changed files with 25 additions and 5 deletions

View File

@ -94,7 +94,7 @@ find_exec (const char *name, path_conv& buf, const char *mywinenv,
char *tmp = tp.c_get ();
const char *posix = (opt & FE_NATIVE) ? NULL : name;
bool has_slash = !!strpbrk (name, "/\\");
int err;
int err = 0;
/* Check to see if file can be opened as is first.
Win32 systems always check . first, but PATH may not be set up to