fix: 修复9项致命/严重Bug

C1 protocol.c: frame_len>64校验防溢出 C3 DebugCmd: 5处argc空指针检查 C4 DebugCmd: Rs485Cmd->CommUnitCmd溢出 C5 main: Debug_Thread线程指针检查 C7 Public: 注册循环变量遮蔽修正 C8 spiflash: memcmp越界读修正 H1 RS485Task: 通道号布尔判断修正 H2 DebugCmd: 边界检查&&->||
This commit is contained in:
2026-07-14 18:52:51 +08:00
parent aca260ba54
commit 26e48126c8
6 changed files with 11 additions and 7 deletions
+1 -1
View File
@@ -227,7 +227,7 @@ void RS485CmdSend(GateWayPara GateWay, uint8_t CommUintAddr, SensorCommPara Sens
{
SensorCommPara SC;
if(CommUintAddr)
if(CommUintAddr == 1)
SC = &SComm1Para;
else
SC = &SComm2Para;