mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
Add Editable.toString flow step
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import android.widget.EditText;
|
||||
|
||||
public class TestWidget {
|
||||
|
||||
private void sink(Object sink) {}
|
||||
|
||||
public void test(EditText t) {
|
||||
sink(t.getText().toString()); // $ hasTaintFlow
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
//semmle-extractor-options: --javac-args -cp ${testdir}/../../../../stubs/google-android-9.0.0
|
||||
@@ -0,0 +1,7 @@
|
||||
import java
|
||||
import semmle.code.java.dataflow.FlowSources
|
||||
import TestUtilities.InlineFlowTest
|
||||
|
||||
class SourceTaintFlowConf extends DefaultTaintFlowConf {
|
||||
override predicate isSource(DataFlow::Node src) { src instanceof RemoteFlowSource }
|
||||
}
|
||||
Reference in New Issue
Block a user