Skip to content
Snippets Groups Projects
Commit a8f83fa8 authored by athatheocsd's avatar athatheocsd
Browse files

Well scratch my last commit message

parent 75af7655
No related branches found
No related tags found
No related merge requests found
...@@ -23,9 +23,7 @@ void EventActionService::addEventActionDefinitions(Message message) { ...@@ -23,9 +23,7 @@ void EventActionService::addEventActionDefinitions(Message message) {
eventActionDefinitionArray[index].enabled = true; eventActionDefinitionArray[index].enabled = true;
eventActionDefinitionArray[index].applicationId = message.readEnum16(); eventActionDefinitionArray[index].applicationId = message.readEnum16();
eventActionDefinitionArray[index].eventDefinitionID = message.readEnum16(); eventActionDefinitionArray[index].eventDefinitionID = message.readEnum16();
// Tests pass with message.dataSize - 3, message.dataSize - 4, but not if (message.dataSize - 4 > ECSS_EVENT_SERVICE_STRING_SIZE) { // TODO: Should this be >=
// message.dataSize - 5
if (message.dataSize - 4 > ECSS_EVENT_SERVICE_STRING_SIZE) { // TODO: Fix this
ErrorHandler::reportInternalError(ErrorHandler::InternalErrorType::MessageTooLarge); ErrorHandler::reportInternalError(ErrorHandler::InternalErrorType::MessageTooLarge);
} else { } else {
char data[ECSS_EVENT_SERVICE_STRING_SIZE]; char data[ECSS_EVENT_SERVICE_STRING_SIZE];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment