From 9545eab4c8e6bf5ba17129eae78fb4bed31f5915 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Fri, 18 Jul 2025 15:51:37 +0200 Subject: [PATCH] conf/output: friendly error message on bad configuration Ticket: 7611 Instead of segfault output.types expects a sequence of one-key mappings, instead of directly a mapping --- src/runmodes.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/runmodes.c b/src/runmodes.c index 800365f8e5..05c5e925ef 100644 --- a/src/runmodes.c +++ b/src/runmodes.c @@ -669,6 +669,9 @@ static void RunModeInitializeEveOutput( if (types == NULL) { return; } + if (!SCConfNodeIsSequence(types)) { + FatalError("output types should be a sequence"); + } SCConfNode *type = NULL; TAILQ_FOREACH(type, &types->head, next) { -- 2.47.2