Use of uninitialized memory in backend.cmod
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4411
Reported by Anders Blomdell, Reglerteknik, LTH anders.blomdell@control.lth.se
The code:
INIT_FD_CALLBACK_BOX (&me->wakeup_cb_box, me, NULL,
pipe[0], PIKE_BIT_FD_READ, wakeup_callback);
me->wakeup_pipe_send_fd = pipe[1];
is obviously bogus, since INIT_FD_CALLBACK_BOX uses wakeup_pipe_send_fd, has to be changed to:
me->wakeup_pipe_send_fd = pipe[1];
INIT_FD_CALLBACK_BOX (&me->wakeup_cb_box, me, NULL,
pipe[0], PIKE_BIT_FD_READ, wakeup_callback);