mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
Java: Fix qltests.
This commit is contained in:
@@ -55,10 +55,14 @@ class WebResourceResponseSink extends DataFlow::Node {
|
||||
}
|
||||
|
||||
/**
|
||||
* A value step from the URL argument of `WebView::loadUrl` to the URL parameter of
|
||||
* A taint step from the URL argument of `WebView::loadUrl` to the URL/WebResourceRequest parameter of
|
||||
* `WebViewClient::shouldInterceptRequest`.
|
||||
*
|
||||
* TODO: This ought to be a value step when it is targeting the URL parameter,
|
||||
* and it ought to check the parameter type in both cases to ensure that we only
|
||||
* hit the overloads we intend to.
|
||||
*/
|
||||
private class FetchUrlStep extends AdditionalValueStep {
|
||||
private class FetchUrlStep extends AdditionalTaintStep {
|
||||
override predicate step(DataFlow::Node pred, DataFlow::Node succ) {
|
||||
exists(
|
||||
// webview.loadUrl(url) -> webview.setWebViewClient(new WebViewClient() { shouldInterceptRequest(view, url) });
|
||||
|
||||
Reference in New Issue
Block a user