diff --git a/lib/checkbufferoverrun.cpp b/lib/checkbufferoverrun.cpp index 732c77cbb..42bf4e151 100644 --- a/lib/checkbufferoverrun.cpp +++ b/lib/checkbufferoverrun.cpp @@ -378,6 +378,8 @@ static bool checkBufferSize(const Token *ftok, const Library::ArgumentChecks::Mi if (arg && arg2 && arg->hasKnownIntValue() && arg2->hasKnownIntValue()) return (arg->getKnownIntValue() * arg2->getKnownIntValue()) <= bufferSize; break; + case Library::ArgumentChecks::MinSize::Type::VALUE: + return minsize.value <= bufferSize; case Library::ArgumentChecks::MinSize::Type::NONE: break; };