OSDN Git Service
(root)
/
pf3gnuchains
/
sourceware.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3a4b02
)
* pinfo.cc (_pinfo::commune_send): Initialize buffer or suffer random crashes.
author
cgf
<cgf>
Tue, 5 Nov 2002 03:39:24 +0000
(
03:39
+0000)
committer
cgf
<cgf>
Tue, 5 Nov 2002 03:39:24 +0000
(
03:39
+0000)
winsup/cygwin/ChangeLog
patch
|
blob
|
history
winsup/cygwin/pinfo.cc
patch
|
blob
|
history
diff --git
a/winsup/cygwin/ChangeLog
b/winsup/cygwin/ChangeLog
index
c35a6f6
..
3d09e6a
100644
(file)
--- 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
b294130
..
0f9510f
100644
(file)
--- 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);