Skip to content

Commit dcee1da

Browse files
committed
Mark spurious test results
1 parent e6b7da1 commit dcee1da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

java/ql/test/query-tests/security/CWE-749/app/UnsafeAndroidAccess.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public boolean shouldOverrideUrlLoading(WebView view, String url) {
3232

3333
String thisUrl = getIntent().getExtras().getString("url");
3434
wv.loadUrl(thisUrl); // $hasUnsafeAndroidAccess
35-
wv.loadUrl("https://www.mycorp.com/" + thisUrl); // Safe
35+
wv.loadUrl("https://www.mycorp.com/" + thisUrl); // $ SPURIOUS: hasUnsafeAndroidAccess // Safe, needs sanitizer
3636
wv.loadUrl("https://www.mycorp.com"); // Safe
3737
}
3838

@@ -51,7 +51,7 @@ public boolean shouldOverrideUrlLoading(WebView view, String url) {
5151

5252
String thisUrl = getIntent().getStringExtra("url");
5353
wv.loadUrl(thisUrl); // $hasUnsafeAndroidAccess
54-
wv.loadUrl("https://www.mycorp.com/" + thisUrl); // Safe
54+
wv.loadUrl("https://www.mycorp.com/" + thisUrl); // $ SPURIOUS: hasUnsafeAndroidAccess // Safe, needs sanitizer
5555
wv.loadUrl("https://www.mycorp.com"); // Safe
5656
}
5757

@@ -70,7 +70,7 @@ public boolean shouldOverrideUrlLoading(WebView view, String url) {
7070

7171
String thisUrl = getIntent().getStringExtra("url");
7272
wv.loadUrl(thisUrl); // $hasUnsafeAndroidAccess
73-
wv.loadUrl("https://www.mycorp.com/" + thisUrl); // Safe
73+
wv.loadUrl("https://www.mycorp.com/" + thisUrl); // $ SPURIOUS: hasUnsafeAndroidAccess // Safe, needs sanitizer
7474
wv.loadUrl("https://www.mycorp.com"); // Safe
7575
}
7676

0 commit comments

Comments
 (0)