Browse Source

[Fix] Fix some corner cases when parsing maps with no newlines

tags/3.8.0
Vsevolod Stakhov 6 months ago
parent
commit
f3c299ded9
No account linked to committer's email address
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/libserver/maps/map_helpers.c

+ 3
- 0
src/libserver/maps/map_helpers.c View 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;

Loading…
Cancel
Save