From: Vsevolod Stakhov Date: Wed, 13 Mar 2024 15:06:03 +0000 (+0000) Subject: [Fix] Libucl: Fix messagepack autodetection X-Git-Tag: 3.9.0~101^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b368f28b84e7c57854eca33931b9758b647ae6eb;p=rspamd.git [Fix] Libucl: Fix messagepack autodetection --- diff --git a/contrib/libucl/ucl_parser.c b/contrib/libucl/ucl_parser.c index 354bfe857..b18fd06ce 100644 --- a/contrib/libucl/ucl_parser.c +++ b/contrib/libucl/ucl_parser.c @@ -2984,7 +2984,7 @@ ucl_parser_add_chunk_full (struct ucl_parser *parser, const unsigned char *data, if (parse_type == UCL_PARSE_AUTO && len > 0) { /* We need to detect parse type by the first symbol */ - if ((*data & 0x80) == 0x80 && (*data >= 0xdc && *data <= 0xdf)) { + if ((*data & 0x80) == 0x80) { parse_type = UCL_PARSE_MSGPACK; } else if (*data == '(') {