check maximum position
This commit is contained in:
@@ -175,7 +175,7 @@ result_t DataField::create(std::vector<std::string>::iterator& it,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pos > maxPos) { // TODO check this in real offset as well
|
if (pos > maxPos) {
|
||||||
result = RESULT_ERR_INVALID_ARG; // invalid pos definition
|
result = RESULT_ERR_INVALID_ARG; // invalid pos definition
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user