From 72901b7822c5684f8a10faa91118f3fd6de6c01a Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Thu, 2 Jun 2022 12:48:38 +0200 Subject: [PATCH] ctl: skip checking end tag for BINRPC_T_DOUBLE values - related to GH #3123 --- src/modules/ctl/binrpc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/ctl/binrpc.h b/src/modules/ctl/binrpc.h index da4524878cc..94ced22ea25 100644 --- a/src/modules/ctl/binrpc.h +++ b/src/modules/ctl/binrpc.h @@ -730,7 +730,7 @@ inline static unsigned char* binrpc_read_record(struct binrpc_parse_ctx* ctx, type=*p & 0xf; len=*p>>4; p++; - if (len & 8){ + if ((type!=BINRPC_T_DOUBLE) && (len & 8)){ end_tag=1; /* possible end mark for array or structs */ /* we have to read len bytes and use them as the new len */ p=binrpc_read_int(&len, len&7, p, end, err);