Skip to content

Commit a798b19

Browse files
committed
Replace flow(_, sink) with flowTo(sink)
1 parent d24c507 commit a798b19

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

java/ql/lib/semmle/code/java/security/CleartextStorageQuery.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ private class DefaultCleartextStorageSanitizer extends CleartextStorageSanitizer
5656
DefaultCleartextStorageSanitizer() {
5757
this.getType() instanceof NumericType or
5858
this.getType() instanceof BooleanType or
59-
EncryptedValueFlow::flow(_, this)
59+
EncryptedValueFlow::flowTo(this)
6060
}
6161
}
6262

java/ql/lib/semmle/code/java/security/ExternalAPIs.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ deprecated class UntrustedDataToExternalAPIConfig = UntrustedDataToExternalApiCo
127127

128128
/** A node representing untrusted data being passed to an external API. */
129129
class UntrustedExternalApiDataNode extends ExternalApiDataNode {
130-
UntrustedExternalApiDataNode() { UntrustedDataToExternalApiFlow::flow(_, this) }
130+
UntrustedExternalApiDataNode() { UntrustedDataToExternalApiFlow::flowTo(this) }
131131

132132
/** Gets a source of untrusted data which is passed to this external API data node. */
133133
DataFlow::Node getAnUntrustedSource() { UntrustedDataToExternalApiFlow::flow(result, this) }

java/ql/test/query-tests/security/CWE-798/semmle/tests/HardcodedCredentialsApiCall.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class HardcodedCredentialsApiCallTest extends InlineExpectationsTest {
99

1010
override predicate hasActualResult(Location location, string element, string tag, string value) {
1111
tag = "HardcodedCredentialsApiCall" and
12-
exists(DataFlow::Node sink | HardcodedCredentialApiCallFlow::flow(_, sink) |
12+
exists(DataFlow::Node sink | HardcodedCredentialApiCallFlow::flowTo(sink) |
1313
sink.getLocation() = location and
1414
element = sink.toString() and
1515
value = ""

0 commit comments

Comments
 (0)