We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7be3c30 commit 9438735Copy full SHA for 9438735
src/CmdParser.cpp
@@ -24,7 +24,7 @@ uint16_t CmdParser::parseCmd(uint8_t *buffer, size_t bufferSize)
24
m_paramCount = 0;
25
26
// buffer is not okay
27
- if (buffer == NULL || bufferSize == 0) {
+ if (buffer == NULL || bufferSize == 0 || buffer[0] == 0x00) {
28
return CMDPARSER_ERROR;
29
}
30
0 commit comments