Skip to content

Commit 84e7e22

Browse files
committed
a few more queries
1 parent 7bfacf1 commit 84e7e22

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

java/ql/src/Language Abuse/UselessNullCheck.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ where
2424
then msg = "This check is useless. $@ cannot be null at this check, since it is guarded by $@."
2525
else
2626
if reason != e
27-
then msg = "This check is useless. $@ cannot be null this check, since $@ always is non-null."
27+
then msg = "This check is useless. $@ cannot be null at this check, since $@ always is non-null."
2828
else msg = "This check is useless, since $@ always is non-null."
2929
)
3030
select guard, msg, e, e.toString(), reason, reason.toString()

java/ql/src/Security/CWE/CWE-940/AndroidIntentRedirection.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ import DataFlow::PathGraph
2020
from DataFlow::PathNode source, DataFlow::PathNode sink, IntentRedirectionConfiguration conf
2121
where conf.hasFlowPath(source, sink)
2222
select sink.getNode(), source, sink,
23-
"Arbitrary Android activities or services can be started from $@.", source.getNode(),
23+
"Arbitrary Android activities or services can be started from a $@.", source.getNode(),
2424
"user-provided value"
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
| A.java:4:9:4:17 | ... == ... | This check is useless. $@ cannot be null this check, since $@ always is non-null. | A.java:4:9:4:9 | o | o | A.java:3:16:3:27 | new Object(...) | new Object(...) |
2-
| A.java:5:9:5:17 | ... != ... | This check is useless. $@ cannot be null this check, since $@ always is non-null. | A.java:5:9:5:9 | o | o | A.java:3:16:3:27 | new Object(...) | new Object(...) |
3-
| A.java:9:11:9:19 | ... == ... | This check is useless. $@ cannot be null this check, since $@ always is non-null. | A.java:9:11:9:11 | e | e | A.java:8:23:8:23 | e | e |
1+
| A.java:4:9:4:17 | ... == ... | This check is useless. $@ cannot be null at this check, since $@ always is non-null. | A.java:4:9:4:9 | o | o | A.java:3:16:3:27 | new Object(...) | new Object(...) |
2+
| A.java:5:9:5:17 | ... != ... | This check is useless. $@ cannot be null at this check, since $@ always is non-null. | A.java:5:9:5:9 | o | o | A.java:3:16:3:27 | new Object(...) | new Object(...) |
3+
| A.java:9:11:9:19 | ... == ... | This check is useless. $@ cannot be null at this check, since $@ always is non-null. | A.java:9:11:9:11 | e | e | A.java:8:23:8:23 | e | e |
44
| A.java:18:11:18:19 | ... != ... | This check is useless. $@ cannot be null at this check, since it is guarded by $@. | A.java:18:11:18:11 | a | a | A.java:16:9:16:22 | ...instanceof... | ...instanceof... |
5-
| A.java:31:11:31:19 | ... != ... | This check is useless. $@ cannot be null this check, since $@ always is non-null. | A.java:31:11:31:11 | x | x | A.java:29:17:29:20 | this | this |
5+
| A.java:31:11:31:19 | ... != ... | This check is useless. $@ cannot be null at this check, since $@ always is non-null. | A.java:31:11:31:11 | x | x | A.java:29:17:29:20 | this | this |
66
| A.java:40:14:40:25 | ... != ... | This check is useless, since $@ always is non-null. | A.java:40:14:40:17 | this | this | A.java:40:14:40:17 | this | this |
77
| A.java:42:9:42:17 | ... != ... | This check is useless. $@ cannot be null at this check, since it is guarded by $@. | A.java:42:9:42:9 | x | x | A.java:39:9:39:17 | ... == ... | ... == ... |
8-
| A.java:52:9:52:24 | ... != ... | This check is useless. $@ cannot be null this check, since $@ always is non-null. | A.java:52:9:52:16 | finalObj | finalObj | A.java:48:35:48:46 | new Object(...) | new Object(...) |
8+
| A.java:52:9:52:24 | ... != ... | This check is useless. $@ cannot be null at this check, since $@ always is non-null. | A.java:52:9:52:16 | finalObj | finalObj | A.java:48:35:48:46 | new Object(...) | new Object(...) |

0 commit comments

Comments
 (0)