Skip to content

Commit bc92a3b

Browse files
committed
Fix #14168 (Change CWE for comparePointers)
1 parent 9fca821 commit bc92a3b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)