CheckBufferOverrun: restore minsize code
This commit is contained in:
parent
03f8535c71
commit
b53a2e5dc4
|
@ -378,6 +378,8 @@ static bool checkBufferSize(const Token *ftok, const Library::ArgumentChecks::Mi
|
||||||
if (arg && arg2 && arg->hasKnownIntValue() && arg2->hasKnownIntValue())
|
if (arg && arg2 && arg->hasKnownIntValue() && arg2->hasKnownIntValue())
|
||||||
return (arg->getKnownIntValue() * arg2->getKnownIntValue()) <= bufferSize;
|
return (arg->getKnownIntValue() * arg2->getKnownIntValue()) <= bufferSize;
|
||||||
break;
|
break;
|
||||||
|
case Library::ArgumentChecks::MinSize::Type::VALUE:
|
||||||
|
return minsize.value <= bufferSize;
|
||||||
case Library::ArgumentChecks::MinSize::Type::NONE:
|
case Library::ArgumentChecks::MinSize::Type::NONE:
|
||||||
break;
|
break;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue