From f3c299ded9fa25e1c5c60c596515e99c386d5d55 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 18 Nov 2023 12:18:48 +0000 Subject: [PATCH] [Fix] Fix some corner cases when parsing maps with no newlines --- src/libserver/maps/map_helpers.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libserver/maps/map_helpers.c b/src/libserver/maps/map_helpers.c index be4b312ca..65478c567 100644 --- a/src/libserver/maps/map_helpers.c +++ b/src/libserver/maps/map_helpers.c @@ -411,6 +411,9 @@ rspamd_parse_kv_list( /* Examine the state */ switch (data->state) { case map_read_key: + case map_read_key_slashed: + case map_read_key_quoted: + case map_read_key_after_slash: if (p - c > 0) { /* Store a single key */ MAP_STORE_KEY; -- 2.39.5