File tree Expand file tree Collapse file tree
java/ql/test/library-tests/frameworks/apache-commons-compress Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,6 +26,20 @@ public void test() throws Exception {
2626 out = new TarArchiveEntry (in , false );
2727 sink (out ); // $ hasTaintFlow
2828 }
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+ }
2943
3044 }
3145
You can’t perform that action at this time.
0 commit comments