From bc92a3ba73c4e277f91ab5360f05770847047037 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 1 Oct 2025 16:26:30 +0200 Subject: [PATCH] Fix #14168 (Change CWE for comparePointers) --- lib/checkother.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkother.cpp b/lib/checkother.cpp index f87846c052d..440fde971f8 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -4328,7 +4328,7 @@ void CheckOther::comparePointersError(const Token *tok, const ValueFlow::Value * } errorPath.emplace_back(tok, ""); reportError( - std::move(errorPath), Severity::error, id, verb + " pointers that point to different objects", CWE570, Certainty::normal); + std::move(errorPath), Severity::error, id, verb + " pointers that point to different objects", CWE758, Certainty::normal); } void CheckOther::checkModuloOfOne()