ctf: assert that request_sz in medium ops request_bytes is greater than 0
[babeltrace.git] / src / plugins / ctf / lttng-live / data-stream.c
index 903cbf73d448da12f9d5959b14a0984e6c6a6cbf..3435628754de16d1810509181281247dd7700cb7 100644 (file)
@@ -58,6 +58,8 @@ enum ctf_msg_iter_medium_status medop_request_bytes(
        uint64_t len_left;
        uint64_t read_len;
 
+       BT_ASSERT(request_sz);
+
        if (stream->has_stream_hung_up) {
                status = CTF_MSG_ITER_MEDIUM_STATUS_EOF;
                goto end;
This page took 0.023231 seconds and 4 git commands to generate.