From b53a2e5dc44850286299e3e737e244e3ee135de4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 17 Mar 2019 20:34:49 +0100 Subject: [PATCH] CheckBufferOverrun: restore minsize code --- lib/checkbufferoverrun.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; };