Skip to content

Commit ccbd8aa

Browse files
committed
Java: Improve alert message of IntMultToLong.
1 parent 9e0ba51 commit ccbd8aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/src/Likely Bugs/Arithmetic/IntMultToLong.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ where
5252
// not obviously small and ok
5353
not small(e) and
5454
e.getEnclosingCallable().fromSource()
55-
select c, "$@ converted to "+ destType.getName() +" by use in " + ("a " + c.kind()).regexpReplaceAll("^a ([aeiou])", "an $1") + ".", e, sourceType.getName() + " multiplication"
55+
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"

0 commit comments

Comments
 (0)