* 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

@ -50,7 +50,8 @@ strace::activate (bool isfork)
}
else
{
GetModuleFileNameW (NULL, progname_buf, sizeof (myself->progname));
GetModuleFileNameW (NULL, progname_buf,
sizeof progname_buf / sizeof (WCHAR));
__small_sprintf (pidbuf, "(windows pid %u)", GetCurrentProcessId ());
progname = progname_buf;
}