From 896f6cf48ad3075523757585fff2215770821674 Mon Sep 17 00:00:00 2001 From: James R Date: Fri, 3 Sep 2021 17:39:06 -0700 Subject: [PATCH] Fix textcmd scanning for zero length netcmds --- src/d_clisrv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d_clisrv.c b/src/d_clisrv.c index a733c79f9..f745bae3e 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -448,7 +448,7 @@ static void ExtraDataTicker(void) UINT8 *curpos = textcmd->cmd; UINT8 *bufferend = &curpos[textcmd->length]; - while (curpos + NETCMD_HEADER_SIZE < bufferend) + while (curpos + NETCMD_HEADER_SIZE <= bufferend) { const UINT8 id = curpos[netcmd_type]; const UINT8 length = curpos[netcmd_length];