Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 06e48ca

Browse files
committed
Java: Update test.
1 parent 203c9fb commit 06e48ca

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
| Test.java:20:23:20:48 | ... * ... | Potential overflow in $@ before it is converted to long by use in an assignment context. | Test.java:20:23:20:48 | ... * ... | int multiplication |
22
| Test.java:27:23:27:52 | ... + ... | Potential overflow in $@ before it is converted to long by use in an assignment context. | Test.java:27:23:27:48 | ... * ... | int multiplication |
33
| Test.java:34:23:34:63 | ...?...:... | Potential overflow in $@ before it is converted to long by use in an assignment context. | Test.java:34:30:34:55 | ... * ... | int multiplication |
4-
| Test.java:41:25:41:49 | ... * ... | Potential overflow in $@ before it is converted to double by use in an assignment context. | Test.java:41:25:41:49 | ... * ... | long multiplication |

java/ql/test/query-tests/security/CWE-190/semmle/tests/Test.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public static void main(String[] args) {
3737
{
3838
long timeInSeconds = 10000000L;
3939

40-
// BAD: same problem, but with longs
40+
// same problem, but with longs; not reported as the conversion to double is not sufficient indication of a large number
4141
double timeInNanos = timeInSeconds * 10000000L;
4242
}
4343

0 commit comments

Comments
 (0)