]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix some corner cases when parsing maps with no newlines
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 18 Nov 2023 12:18:48 +0000 (12:18 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 18 Nov 2023 12:19:14 +0000 (12:19 +0000)
src/libserver/maps/map_helpers.c

index be4b312ca4840b3e203c48f464d129170710434e..65478c56711dda57072da1517417b9eb6d0a9f55 100644 (file)
@@ -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;