Skip to content

Commit

Permalink
Backport msgpack detection fix from libucl
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Apr 20, 2024
1 parent 6e10be9 commit 6cd32a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ucl_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -3009,7 +3009,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 == '(') {
Expand Down

0 comments on commit 6cd32a1

Please sign in to comment.