Fixed in Zesty.

** Changed in: zeromq3 (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to zeromq3 in Ubuntu.
https://bugs.launchpad.net/bugs/1622073

Title:
  zmq::mechanism_t::socket_type_string off-by-one

Status in zeromq3 package in Ubuntu:
  Fix Released

Bug description:
  Hello, the zmq::mechanism_t::socket_type_string function in
  ./src/mechanism.cpp appears to have an off-by-one mistake:

  const char *zmq::mechanism_t::socket_type_string (int socket_type) const 
  {   
      static const char *names [] = {"PAIR", "PUB", "SUB", "REQ", "REP",
                                     "DEALER", "ROUTER", "PULL", "PUSH",
                                     "XPUB", "XSUB", "STREAM"};
      zmq_assert (socket_type >= 0 && socket_type <= 10);
      return names [socket_type];
  }   

  names[11] is "STREAM" but that triggers the assert.

  Thanks

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zeromq3/+bug/1622073/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to