Fix: event notifier: add missing parameters validation
[lttng-modules.git] / 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.02318 seconds and 4 git commands to generate.