size check bugfix
Some checks failed
fsfw/fsfw/pipeline/head There was a failure building this commit

This commit is contained in:
Robin Müller 2022-10-17 14:01:21 +02:00
parent 9f81926aec
commit 14a8924a83
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814

View File

@ -17,7 +17,7 @@ ReturnValue_t FinishPduCreator::serialize(uint8_t **buffer, size_t *size, size_t
if (result != returnvalue::OK) {
return result;
}
if (*size + 1 >= maxSize) {
if (*size + 1 > maxSize) {
return SerializeIF::BUFFER_TOO_SHORT;
}
**buffer = finishInfo.getConditionCode() << 4 | finishInfo.getDeliveryCode() << 2 |