[zeromq-dev] possible bug in zframe.c ?
Laurent Alebarde
l.alebarde at free.fr
Tue Jun 18 10:08:54 CEST 2013
Hi list,
Studying the czmq library, I found a possible bug in zframe.c :
----- code begin ---------------
const char *elipsis = "";
if (size > max_size) {
size = max_size;
elipsis = "...";
}
----- code end ------------------
I am not an expert, but it looks to me that the room for "..." has not
been allocated. If my analysis is correct, a possible correction would be:
----- code begin ---------------
const char *elipsis = "...";
if (size > max_size) {
size = max_size;
}
else {
elipsis = "";
}
----- code end ------------------
Cheers,
Laurent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130618/aa466052/attachment.htm>
More information about the zeromq-dev
mailing list