zmq::mechanism_t::socket_type_string off-by-one
Bug #1622073 reported by
Seth Arnold
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zeromq3 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hello, the zmq::mechanism_
const char *zmq::mechanism
{
static const char *names [] = {"PAIR", "PUB", "SUB", "REQ", "REP",
zmq_assert (socket_type >= 0 && socket_type <= 10);
return names [socket_type];
}
names[11] is "STREAM" but that triggers the assert.
Thanks
To post a comment you must log in.
Hi,
Good catch!
This is fixed in 4.2.0 already, and I will fix it for the next 4.1 stable release (4.1.7).