Commit 063f14a9 authored by Eelis van der Weegen's avatar Eelis van der Weegen

Problem: out-of-bounds array access in socket_poller::check_events.

parent d882e807
...@@ -455,9 +455,9 @@ int zmq::socket_poller_t::check_events (zmq::socket_poller_t::event_t *events_, ...@@ -455,9 +455,9 @@ int zmq::socket_poller_t::check_events (zmq::socket_poller_t::event_t *events_,
} }
// Else, the poll item is a raw file descriptor, simply convert // Else, the poll item is a raw file descriptor, simply convert
// the events to zmq_pollitem_t-style format. // the events to zmq_pollitem_t-style format.
else { else if (it->events) {
#if defined ZMQ_POLL_BASED_ON_POLL #if defined ZMQ_POLL_BASED_ON_POLL
zmq_assert (it->pollfd_index >= 0);
const short revents = _pollfds[it->pollfd_index].revents; const short revents = _pollfds[it->pollfd_index].revents;
short events = 0; short events = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment