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