check maximum position

This commit is contained in:
john30
2014-11-20 10:15:53 +01:00
parent 46bbca5d86
commit 6d253af691
+1 -1
View File
@@ -175,7 +175,7 @@ result_t DataField::create(std::vector<std::string>::iterator& it,
break;
}
if (pos > maxPos) { // TODO check this in real offset as well
if (pos > maxPos) {
result = RESULT_ERR_INVALID_ARG; // invalid pos definition
break;
}