Fix: unchecked buffer size for communication header
[lttng-tools.git] / src / common / actions / group.c
index 31c6f456ebcdf2c11c3e0da702f5733befd13eac..4ac239c9d62c14f43c7b2ddf0623c5e901aeaf5d 100644 (file)
@@ -217,6 +217,11 @@ ssize_t lttng_action_group_create_from_payload(
                                lttng_payload_view_from_view(view, consumed_len,
                                                view->buffer.size - consumed_len);
 
+               if (!lttng_payload_view_is_valid(&child_view)) {
+                       consumed_len = -1;
+                       goto end;
+               }
+
                consumed_len_child = lttng_action_create_from_payload(
                                &child_view, &child_action);
                if (consumed_len_child < 0) {
This page took 0.029982 seconds and 4 git commands to generate.