File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
src/Likely Bugs/Arithmetic
test/query-tests/security/CWE-190/semmle/tests Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 45
45
v = a .getDest ( )
46
46
)
47
47
select a ,
48
- "Implicit cast of $@ to narrower destination type " + a . getDest ( ) . getType ( ) .getName ( ) + "." , v ,
49
- "source type " + e .getType ( ) .getName ( )
48
+ "Implicit cast of source type " + e . getType ( ) .getName ( ) + " to narrower destination type $@ ." , v ,
49
+ a . getDest ( ) .getType ( ) .getName ( )
Original file line number Diff line number Diff line change 1
- | Test.java:68:5:68:25 | ...+=... | Implicit cast of $@ to narrower destination type int . | Test.java:64:4:64:13 | int i | source type long |
2
- | Test.java:87:4:87:9 | ...+=... | Implicit cast of $@ to narrower destination type int . | Test.java:81:4:81:13 | int i | source type long |
3
- | Test.java:289:5:289:30 | ...+=... | Implicit cast of $@ to narrower destination type int . | Test.java:285:4:285:27 | int[] arr | source type long |
4
- | Test.java:293:7:293:44 | ...+=... | Implicit cast of $@ to narrower destination type int . | Test.java:293:7:293:24 | ...[...] | source type long |
1
+ | Test.java:68:5:68:25 | ...+=... | Implicit cast of source type long to narrower destination type $@ . | Test.java:64:4:64:13 | int i | int |
2
+ | Test.java:87:4:87:9 | ...+=... | Implicit cast of source type long to narrower destination type $@ . | Test.java:81:4:81:13 | int i | int |
3
+ | Test.java:289:5:289:30 | ...+=... | Implicit cast of source type long to narrower destination type $@ . | Test.java:285:4:285:27 | int[] arr | int |
4
+ | Test.java:293:7:293:44 | ...+=... | Implicit cast of source type long to narrower destination type $@ . | Test.java:293:7:293:24 | ...[...] | int |
You can’t perform that action at this time.
0 commit comments