From: Vsevolod Stakhov Date: Thu, 17 Nov 2016 13:03:36 +0000 (+0000) Subject: [Minor] Do not add maps from weird data X-Git-Tag: 1.4.0~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91ddd33ee6aa914d928890bbf3b4665ecd020cfe;p=thirdparty%2Frspamd.git [Minor] Do not add maps from weird data Issue: #1143 Reported by: @AlexeySa --- diff --git a/src/libutil/map.c b/src/libutil/map.c index f240e5f846..eaaea4ac05 100644 --- a/src/libutil/map.c +++ b/src/libutil/map.c @@ -1666,6 +1666,11 @@ rspamd_map_add_from_ucl (struct rspamd_config *cfg, goto err; } } + else { + msg_err_config ("map has invalid type for value: %s", + ucl_object_type_to_string (ucl_object_type (obj))); + goto err; + } rspamd_map_calculate_hash (map); msg_info_map ("added map from ucl");