diff --git a/lib/checkbufferoverrun.h b/lib/checkbufferoverrun.h index 7052fa01a..386aad59e 100644 --- a/lib/checkbufferoverrun.h +++ b/lib/checkbufferoverrun.h @@ -126,9 +126,9 @@ private: std::string toString() const OVERRIDE; }; - static bool isCtuUnsafeBufferUsage(const Check *check, const Token *argtok, MathLib::bigint *value, int type); - static bool isCtuUnsafeArrayIndex(const Check *check, const Token *argtok, MathLib::bigint *value); - static bool isCtuUnsafePointerArith(const Check *check, const Token *argtok, MathLib::bigint *value); + static bool isCtuUnsafeBufferUsage(const Check *check, const Token *argtok, MathLib::bigint *offset, int type); + static bool isCtuUnsafeArrayIndex(const Check *check, const Token *argtok, MathLib::bigint *offset); + static bool isCtuUnsafePointerArith(const Check *check, const Token *argtok, MathLib::bigint *offset); Check::FileInfo * loadFileInfoFromXml(const tinyxml2::XMLElement *xmlElement) const OVERRIDE; bool analyseWholeProgram1(const CTU::FileInfo *ctu, const std::map> &callsMap, const CTU::FileInfo::UnsafeUsage &unsafeUsage, int type, ErrorLogger &errorLogger);