Skip to content

Commit ec142c9

Browse files
authored
Fix #14168 (Change CWE for comparePointers) (#7864)
1 parent 9fca821 commit ec142c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/checkother.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4328,7 +4328,7 @@ void CheckOther::comparePointersError(const Token *tok, const ValueFlow::Value *
43284328
}
43294329
errorPath.emplace_back(tok, "");
43304330
reportError(
4331-
std::move(errorPath), Severity::error, id, verb + " pointers that point to different objects", CWE570, Certainty::normal);
4331+
std::move(errorPath), Severity::error, id, verb + " pointers that point to different objects", CWE758, Certainty::normal);
43324332
}
43334333

43344334
void CheckOther::checkModuloOfOne()

0 commit comments

Comments
 (0)