Fix: event notifier: add missing parameters validation
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 7 Apr 2021 15:05:32 +0000 (11:05 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 14 Apr 2021 20:38:35 +0000 (16:38 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Idbbbe369f64c14e7ac8914b4e7eb8e3ef75b1fb5

src/lttng-abi.c

index 88c92d91e0fd4d336c59ecdc371be25c1843d205..a78205c4159392bf5b69d2aa87428dacfc8d8fff 100644 (file)
@@ -2042,6 +2042,10 @@ int lttng_abi_create_event_notifier(struct file *event_notifier_group_file,
                goto refcount_error;
        }
 
+       ret = lttng_abi_validate_event_param(&event_notifier_param->event);
+       if (ret)
+               goto event_notifier_error;
+
        switch (event_notifier_param->event.instrumentation) {
        case LTTNG_KERNEL_TRACEPOINT:           /* Fall-through */
        case LTTNG_KERNEL_SYSCALL:
This page took 0.027296 seconds and 4 git commands to generate.