diff options
author | Christopher Faylor <me@cgf.cx> | 2002-11-05 03:39:25 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-11-05 03:39:25 +0000 |
commit | f57289609bdfe5c7063fb32336b1859c37b3c55b (patch) | |
tree | 910aba5fe158a9e7e8076a5d4560365572f14895 | |
parent | 8948b6585dc2d0d34ddb7a07832b402adcc812a9 (diff) | |
download | cygnal-f57289609bdfe5c7063fb32336b1859c37b3c55b.tar.gz cygnal-f57289609bdfe5c7063fb32336b1859c37b3c55b.tar.bz2 cygnal-f57289609bdfe5c7063fb32336b1859c37b3c55b.zip |
* pinfo.cc (_pinfo::commune_send): Initialize buffer or suffer random crashes.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/pinfo.cc | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index c35a6f6a0..3d09e6abd 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,10 @@ 2002-11-04 Christopher Faylor <cgf@redhat.com> + * pinfo.cc (_pinfo::commune_send): Initialize buffer or suffer random + crashes. + +2002-11-04 Christopher Faylor <cgf@redhat.com> + * fhandler_process.cc (fhandler_process::fill_filebuf): Deal with error condition from cmdline retrieval. diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc index b294130d7..0f9510fda 100644 --- a/winsup/cygwin/pinfo.cc +++ b/winsup/cygwin/pinfo.cc @@ -328,6 +328,10 @@ _pinfo::commune_send (DWORD code) HANDLE fromme = NULL, tothem = NULL; DWORD nr; commune_result res; + + res.s = NULL; + res.n = 0; + if (!pid || !this) { set_errno (ESRCH); |