From 85d8bbacb8e92d06c8f420ba55d9a37eda86aa4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 7 Feb 2018 12:49:56 +0100 Subject: [PATCH] integerOverflow: Separate id for conditional integer overflows --- lib/checktype.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checktype.cpp b/lib/checktype.cpp index 325a34ca8..cb4eaa2b0 100644 --- a/lib/checktype.cpp +++ b/lib/checktype.cpp @@ -195,7 +195,7 @@ void CheckType::integerOverflowError(const Token *tok, const ValueFlow::Value &v reportError(getErrorPath(tok, &value, "Integer overflow"), value.errorSeverity() ? Severity::error : Severity::warning, - "integerOverflow", + (value.condition == nullptr) ? "integerOverflow" : "integerOverflowCond", msg, CWE190, value.isInconclusive());