We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please use this template for reporting suspected bugs or requests for help.
zmq_poller_add/zmq_poller_modify should reject invalid events arguments, rather than accepting them silently.
void *ctx = zmq_ctx_new(); void *socket = zmq_socket(ctx, ZMQ_DEALER); void *poller = zmq_poller_new(); int res = zmq_poller_add(poller, socket, nullptr, 42);
res == 0
res == -1 && zmq_errno() == EINVAL
The text was updated successfully, but these errors were encountered:
Problem: zmq_poller_[add/modify] accept invalid events arguments sile…
a79a7f4
…ntly Solution: check and return an error on invalid arguments. Fixes zeromq#3088
c0f3b4c
1b1a61f
e8877f7
180e635
No branches or pull requests
Please use this template for reporting suspected bugs or requests for help.
Issue description
zmq_poller_add/zmq_poller_modify should reject invalid events arguments, rather than accepting them silently.
Environment
Minimal test code / Steps to reproduce the issue
What's the actual result? (include assertion message & call stack if applicable)
res == 0
What's the expected result?
res == -1 && zmq_errno() == EINVAL
The text was updated successfully, but these errors were encountered: