Buffer overflow and missing return code added
This commit is contained in:
@@ -467,6 +467,7 @@ bool parsePosQuery(const String& line) {
|
|||||||
CMD_PORT.print(' ');
|
CMD_PORT.print(' ');
|
||||||
CMD_PORT.println(gauges[i].sweepEnabled ? 1 : 0);
|
CMD_PORT.println(gauges[i].sweepEnabled ? 1 : 0);
|
||||||
}
|
}
|
||||||
|
sendReply("OK");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
@@ -508,6 +509,7 @@ void readCommands() {
|
|||||||
rxLine += c;
|
rxLine += c;
|
||||||
if (rxLine.length() > 120) {
|
if (rxLine.length() > 120) {
|
||||||
rxLine = "";
|
rxLine = "";
|
||||||
|
sendReply("ERR TOO_LONG");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user