Merge pull request 'compile warning fix and defensive programming' (#407) from smaller_tweaks into develop
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good

Reviewed-on: #407
Reviewed-by: Jakob Meier <meierj@irs.uni-stuttgart.de>
This commit is contained in:
Jakob Meier 2023-02-28 18:02:40 +01:00
commit db90c59557
2 changed files with 5 additions and 2 deletions

View File

@ -1224,6 +1224,9 @@ ReturnValue_t CoreController::handleProtInfoUpdateLine(std::string nextLine) {
} }
} }
wordIdx++; wordIdx++;
if(wordIdx >= 10) {
break;
}
} }
return returnvalue::OK; return returnvalue::OK;
} }

View File

@ -91,8 +91,8 @@ ReturnValue_t PersistentTmStore::handleCommandQueue(StorageManagerIF& ipcStore,
if (accessor.second.size() < 8) { if (accessor.second.size() < 8) {
return returnvalue::FAILED; return returnvalue::FAILED;
} }
uint32_t dumpFromUnixSeconds; uint32_t dumpFromUnixSeconds = 0;
uint32_t dumpUntilUnixSeconds; uint32_t dumpUntilUnixSeconds = 0;
size_t size = 8; size_t size = 8;
SerializeAdapter::deSerialize(&dumpFromUnixSeconds, accessor.second.data(), &size, SerializeAdapter::deSerialize(&dumpFromUnixSeconds, accessor.second.data(), &size,
SerializeIF::Endianness::NETWORK); SerializeIF::Endianness::NETWORK);