From 803d61c9d1134a778d6ed7ee2441b16afd44e7ef Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Mon, 9 Jun 2025 11:17:25 +0200 Subject: [PATCH] eve/alert: add comment about string format --- src/output-json-alert.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/output-json-alert.c b/src/output-json-alert.c index 9a8923cc5f..2705933998 100644 --- a/src/output-json-alert.c +++ b/src/output-json-alert.c @@ -257,6 +257,8 @@ void AlertJsonHeader(const Packet *p, const PacketAlert *pa, SCJsonBuilder *js, SCJbOpenObject(js, "context"); const struct PacketContextData *json_info = pa->json_info; while (json_info) { + /* The string is valid json as it is validated by JANSSON + during parsing and included later via a format string */ SCJbSetFormatted(js, json_info->json_string); json_info = json_info->next; } -- 2.47.2