Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2014-06-23 23:05:15 +0400
committerCorinna Vinschen <corinna@vinschen.de>2014-06-23 23:05:15 +0400
commit8431e478d2f74ebf0bcfd2bc4c71e3c391fc7753 (patch)
treed3de9519039b3fb0e2536eabbabd2445015e902b /winsup/cygwin/strace.cc
parentcf06a0b18cf8dd93531f73e2a31f0c72389e84ec (diff)
* 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).
Diffstat (limited to 'winsup/cygwin/strace.cc')
-rw-r--r--winsup/cygwin/strace.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/strace.cc b/winsup/cygwin/strace.cc
index 3d54c10e9..9d1c3c27f 100644
--- a/winsup/cygwin/strace.cc
+++ b/winsup/cygwin/strace.cc
@@ -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;
}