File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed
java/ql/test/library-tests/dataflow/stream-read Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,24 @@ public static void testWrapCall() {
103
103
sink (wrapStream (source ())); // $ hasTaintFlow
104
104
}
105
105
106
- public static void testLocalClass () {
106
+ public static void testLocal () {
107
+
108
+ class LocalInputStream extends InputStream {
109
+ @ Override
110
+ public int read () throws IOException {
111
+ return 0 ;
112
+ }
113
+
114
+ @ Override
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 () {
107
124
InputStream in = source ();
108
125
109
126
class LocalInputStream extends InputStream {
You can’t perform that action at this time.
0 commit comments