This commit is contained in:
Robin Müller 2020-07-28 13:02:43 +02:00
parent e1c17409d9
commit 036a887ea3

View File

@ -63,6 +63,9 @@ public:
count_t tempSize = 0;
ReturnValue_t result = SerializeAdapter::deSerialize(&tempSize,
buffer, size, streamEndianness);
if(result != HasReturnvaluesIF::RETURN_OK) {
return result;
}
if (tempSize > list->maxSize()) {
return SerializeIF::TOO_MANY_ELEMENTS;
}