* pinfo.cc (pinfo::pinfo): Set procinfo to NULL to avoid potential cleanup of

uninitialized garbage.  (Suggested by Ryan Johnson)
This commit is contained in:
Christopher Faylor 2011-05-04 06:00:54 +00:00
parent 781822a646
commit cdbb272b4c
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-05-04 Christopher Faylor <me.cygwin2011@cgf.cx>
* pinfo.cc (pinfo::pinfo): Set procinfo to NULL to avoid potential
cleanup of uninitialized garbage. (Suggested by Ryan Johnson)
2011-05-03 Corinna Vinschen <corinna@vinschen.de>
* select.cc (cygwin_select): Make degenerate case cancelable.

View File

@ -142,7 +142,7 @@ public:
bool waiter_ready;
class cygthread *wait_thread;
void init (pid_t, DWORD, HANDLE) __attribute__ ((regparm(3)));
pinfo () {}
pinfo (): procinfo (NULL) {}
pinfo (_pinfo *x): procinfo (x), hProcess (NULL) {}
pinfo (pid_t n) : rd_proc_pipe (NULL), hProcess (NULL) {init (n, 0, NULL);}
pinfo (pid_t n, DWORD flag) : rd_proc_pipe (NULL), hProcess (NULL), waiter_ready (0), wait_thread (NULL) {init (n, flag, NULL);}