ctf: assert that request_sz in medium ops request_bytes is greater than 0
[babeltrace.git] / src / plugins / ctf / common / msg-iter / msg-iter.c
index 782a5a3435aeb32f7f623bc59aac9154d93984d3..9edc55c80b77b3c96264625c17d8a83c1c8be81e 100644 (file)
@@ -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, "
This page took 0.023419 seconds and 4 git commands to generate.