Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 226103b commit cc5a404Copy full SHA for cc5a404
1 file changed
java/ql/test/library-tests/dataflow/stream-read/A.java
@@ -103,7 +103,24 @@ public static void testWrapCall() {
103
sink(wrapStream(source())); // $ hasTaintFlow
104
}
105
106
- public static void testLocalClass() {
+ public static void testLocal() {
107
+
108
+ class LocalInputStream extends InputStream {
109
+ @Override
110
+ public int read() throws IOException {
111
+ return 0;
112
+ }
113
114
115
+ public int read(byte[] b) throws IOException {
116
+ InputStream in = source();
117
+ return in.read(b);
118
119
120
+ sink(new LocalInputStream()); // $ hasTaintFlow
121
122
123
+ public static void testLocalVarCapture() {
124
InputStream in = source();
125
126
class LocalInputStream extends InputStream {
0 commit comments