mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
C++: shorten message in integer-multiplication-cast-to-long
This commit is contained in:
@@ -103,4 +103,4 @@ where t1 = me.getType().getUnderlyingType() and
|
||||
) and
|
||||
e.(Literal).getType().getSize() = t2.getSize()
|
||||
)
|
||||
select me, "Multiplication result may overflow '" + me.getType().toString() + "' before it is converted to '" + me.getFullyConverted().getType().toString() + "'. Consider casting before multiplication to avoid potential overflow."
|
||||
select me, "Multiplication result may overflow '" + me.getType().toString() + "' before it is converted to '" + me.getFullyConverted().getType().toString() + "'."
|
||||
|
||||
Reference in New Issue
Block a user