mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-21 02:00:36 +01:00
Merge pull request #4314 from ThalesGroup/issue-4312-epoll-invalid-null-pointer
Issue 4312 : Fix epoll invalid event data pointer
This commit is contained in:
commit
ab9c7add58
15
RELICENSE/patrickvolante.md
Normal file
15
RELICENSE/patrickvolante.md
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# Permission to Relicense under MPLv2 or any other share-alike OSI approved license chosen by the current ZeroMQ BDFL
|
||||||
|
|
||||||
|
This is a statement by Patrick Volante
|
||||||
|
that grants permission to relicense its copyrights in the libzmq C++
|
||||||
|
library (ZeroMQ) under the Mozilla Public License v2 (MPLv2) or any other
|
||||||
|
share-alike Open Source Initiative approved license chosen by the current
|
||||||
|
ZeroMQ BDFL (Benevolent Dictator for Life).
|
||||||
|
|
||||||
|
A portion of the commits made by the Github handle "patrick-volante", with
|
||||||
|
commit author "patrick-volante <patrick.volante@thalesgroup.com>", are copyright of patrick volante.
|
||||||
|
This document hereby grants the libzmq project team to relicense libzmq,
|
||||||
|
including all past, present and future contributions of the author listed above.
|
||||||
|
|
||||||
|
Patrick Volante
|
||||||
|
03/12/2021
|
@ -192,6 +192,10 @@ void zmq::epoll_t::loop ()
|
|||||||
const poll_entry_t *const pe =
|
const poll_entry_t *const pe =
|
||||||
static_cast<const poll_entry_t *> (ev_buf[i].data.ptr);
|
static_cast<const poll_entry_t *> (ev_buf[i].data.ptr);
|
||||||
|
|
||||||
|
if (NULL == pe)
|
||||||
|
continue;
|
||||||
|
if (NULL == pe->events)
|
||||||
|
continue;
|
||||||
if (pe->fd == retired_fd)
|
if (pe->fd == retired_fd)
|
||||||
continue;
|
continue;
|
||||||
if (ev_buf[i].events & (EPOLLERR | EPOLLHUP))
|
if (ev_buf[i].events & (EPOLLERR | EPOLLHUP))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user