From 3673022f5752b905c04f083387dfbdfae9d7b664 Mon Sep 17 00:00:00 2001 From: cbdev Date: Sun, 21 Feb 2021 23:15:01 +0100 Subject: Fix dynamic32 edge case --- plugins/framing_dynamic32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/framing_dynamic32.c b/plugins/framing_dynamic32.c index 3b66588..e1394e7 100644 --- a/plugins/framing_dynamic32.c +++ b/plugins/framing_dynamic32.c @@ -53,7 +53,7 @@ static int64_t framing_dynamic32(uint8_t* data, size_t length, size_t last_read, *framing_data = NULL; } - if(length > conncfg->offset + 4){ + if(length >= conncfg->offset + 4){ //read size field size_p = (uint32_t*) (data + conncfg->offset); size = le32toh(*size_p); -- cgit v1.2.3