ps-lite icon indicating copy to clipboard operation
ps-lite copied to clipboard

potential memory error caused by unsuitable zmq_msg_* functions

Open microwish opened this issue 8 years ago • 0 comments

zmq_van.h, RecvMsg function;

190 } else if (i == 1) { 191 // task 192 UnpackMeta(buf, size, &(msg->meta)); 193 zmq_msg_close(zmsg); 194 bool more = zmq_msg_more(zmsg); 195 delete zmsg; 196 if (!more) break; 197 } else {

Seems we should call line 194 first and then call line 193.

microwish avatar Mar 28 '17 21:03 microwish