mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-19 00:46:05 +01:00
Merge pull request #3878 from Eelis/master
Problem: out-of-bounds array access in socket_poller::check_events.
This commit is contained in:
commit
a525323757
@ -443,9 +443,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
|
||||
// the events to zmq_pollitem_t-style format.
|
||||
else {
|
||||
else if (it->events) {
|
||||
#if defined ZMQ_POLL_BASED_ON_POLL
|
||||
|
||||
zmq_assert (it->pollfd_index >= 0);
|
||||
const short revents = _pollfds[it->pollfd_index].revents;
|
||||
short events = 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user