Explorar el Código

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

tags/3.8.0
Vsevolod Stakhov hace 7 meses
padre
commit
f3c299ded9
No account linked to committer's email address
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3
    0
      src/libserver/maps/map_helpers.c

+ 3
- 0
src/libserver/maps/map_helpers.c Ver fichero

@@ -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;

Cargando…
Cancelar
Guardar