File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
java/ql/test/library-tests/frameworks/apache-commons-compress Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,20 @@ public void test() throws Exception {
26
26
out = new TarArchiveEntry (in , false );
27
27
sink (out ); // $ hasTaintFlow
28
28
}
29
+ {
30
+ // "org.apache.commons.compress.archivers.tar;TarArchiveEntry;true;TarArchiveEntry;(String,byte);;Argument[0];Argument[-1];taint;ai-generated"
31
+ TarArchiveEntry out = null ;
32
+ String in = (String ) source ();
33
+ out = new TarArchiveEntry (in , (byte ) 0 );
34
+ sink (out ); // $ hasTaintFlow
35
+ }
36
+ {
37
+ // "org.apache.commons.compress.archivers.tar;TarArchiveEntry;true;setLinkName;(String);;Argument[0];Argument[-1];taint;ai-generated"
38
+ TarArchiveEntry out = null ;
39
+ String in = (String ) source ();
40
+ out .setLinkName (in );
41
+ sink (out ); // $ hasTaintFlow
42
+ }
29
43
30
44
}
31
45
You can’t perform that action at this time.
0 commit comments