Skip to content

Commit cbc0ba6

Browse files
committed
org.apache.tools.zip tests
1 parent 7455c27 commit cbc0ba6

File tree

10 files changed

+270
-0
lines changed

10 files changed

+270
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
package generatedtest;
2+
3+
import org.apache.tools.zip.ZipEntry;
4+
5+
// Test case generated by GenerateFlowTestCase.ql
6+
public class Test {
7+
8+
Object source() {
9+
return null;
10+
}
11+
12+
void sink(Object o) {}
13+
14+
public void test() throws Exception {
15+
16+
{
17+
// "org.apache.tools.zip;ZipEntry;true;ZipEntry;(String);;Argument[0];Argument[-1];taint;ai-generated"
18+
ZipEntry out = null;
19+
String in = (String) source();
20+
out = new ZipEntry(in);
21+
sink(out); // $ hasTaintFlow
22+
}
23+
24+
}
25+
26+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
//semmle-extractor-options: --javac-args -cp ${testdir}/../../../stubs/apache-ant-1.10.13

java/ql/test/library-tests/frameworks/apache-ant/test.expected

Whitespace-only changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import java
2+
import TestUtilities.InlineFlowTest

java/ql/test/stubs/apache-ant-1.10.13/org/apache/tools/zip/CentralDirectoryParsingZipExtraField.java

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

java/ql/test/stubs/apache-ant-1.10.13/org/apache/tools/zip/GeneralPurposeBit.java

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

java/ql/test/stubs/apache-ant-1.10.13/org/apache/tools/zip/UnparseableExtraFieldData.java

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

java/ql/test/stubs/apache-ant-1.10.13/org/apache/tools/zip/ZipEntry.java

Lines changed: 152 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

java/ql/test/stubs/apache-ant-1.10.13/org/apache/tools/zip/ZipExtraField.java

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

java/ql/test/stubs/apache-ant-1.10.13/org/apache/tools/zip/ZipShort.java

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)