mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Java: Improve alert message of IntMultToLong.
This commit is contained in:
@@ -52,4 +52,4 @@ where
|
|||||||
// not obviously small and ok
|
// not obviously small and ok
|
||||||
not small(e) and
|
not small(e) and
|
||||||
e.getEnclosingCallable().fromSource()
|
e.getEnclosingCallable().fromSource()
|
||||||
select c, "$@ converted to "+ destType.getName() +" by use in " + ("a " + c.kind()).regexpReplaceAll("^a ([aeiou])", "an $1") + ".", e, sourceType.getName() + " multiplication"
|
select c, "Potential overflow in $@ before it is converted to "+ destType.getName() +" by use in " + ("a " + c.kind()).regexpReplaceAll("^a ([aeiou])", "an $1") + ".", e, sourceType.getName() + " multiplication"
|
||||||
|
|||||||
Reference in New Issue
Block a user