We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f054f73 commit 226103bCopy full SHA for 226103b
java/ql/test/library-tests/dataflow/stream-read/A.java
@@ -102,4 +102,21 @@ public static void testWrapCall() {
102
sink(wrapStream(null)); // no flow
103
sink(wrapStream(source())); // $ hasTaintFlow
104
}
105
+
106
+ public static void testLocalClass() {
107
+ InputStream in = source();
108
109
+ class LocalInputStream extends InputStream {
110
+ @Override
111
+ public int read() throws IOException {
112
+ return 0;
113
+ }
114
115
116
+ public int read(byte[] b) throws IOException {
117
+ return in.read(b);
118
119
120
+ sink(new LocalInputStream()); // $ hasTaintFlow
121
122
0 commit comments