From b368f28b84e7c57854eca33931b9758b647ae6eb Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 13 Mar 2024 15:06:03 +0000 Subject: [PATCH] [Fix] Libucl: Fix messagepack autodetection --- contrib/libucl/ucl_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 == '(') { -- 2.39.5