X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fplugins%2Fctf%2Fcommon%2Fmsg-iter%2Fmsg-iter.c;h=9edc55c80b77b3c96264625c17d8a83c1c8be81e;hb=c9694de4371410ff7be261f7e9a42a44afcaea32;hp=782a5a3435aeb32f7f623bc59aac9154d93984d3;hpb=026f1a5ae0fde993dc87497aa1ac06c112734247;p=babeltrace.git diff --git a/src/plugins/ctf/common/msg-iter/msg-iter.c b/src/plugins/ctf/common/msg-iter/msg-iter.c index 782a5a34..9edc55c8 100644 --- a/src/plugins/ctf/common/msg-iter/msg-iter.c +++ b/src/plugins/ctf/common/msg-iter/msg-iter.c @@ -2837,6 +2837,8 @@ struct ctf_msg_iter *ctf_msg_iter_create( BT_ASSERT(tc); BT_ASSERT(medops.request_bytes); BT_ASSERT(medops.borrow_stream); + BT_ASSERT(max_request_sz > 0); + BT_COMP_LOG_CUR_LVL(BT_LOG_DEBUG, log_level, self_comp, "Creating CTF plugin message iterator: " "trace-addr=%p, max-request-size=%zu, "