Kitxuuu commited on
Commit
c9acf5a
·
verified ·
1 Parent(s): 247f9d3

Add files using upload-large-folder tool

Browse files
Files changed (20) hide show
  1. local-test-commons-compress-delta-03/afc-commons-compress/BUILDING.md +57 -0
  2. local-test-commons-compress-delta-03/afc-commons-compress/CODE_OF_CONDUCT.md +17 -0
  3. local-test-commons-compress-delta-03/afc-commons-compress/NOTICE.txt +5 -0
  4. local-test-commons-compress-delta-03/afc-commons-compress/README.txt +43 -0
  5. local-test-commons-compress-delta-03/afc-commons-compress/RELEASE-NOTES.txt +0 -0
  6. local-test-commons-compress-delta-03/afc-commons-compress/SECURITY.md +17 -0
  7. local-test-commons-compress-delta-03/afc-commons-compress/pom.xml +637 -0
  8. local-test-commons-compress-delta-03/afc-commons-compress/src/assembly/bin.xml +48 -0
  9. local-test-commons-compress-delta-03/afc-commons-compress/src/changes/changes.xml +0 -0
  10. local-test-commons-compress-delta-03/afc-commons-compress/src/changes/release-notes.vm +164 -0
  11. local-test-commons-compress-delta-03/afc-commons-compress/src/conf/checkstyle/checkstyle-header.txt +18 -0
  12. local-test-commons-compress-delta-03/afc-commons-compress/src/conf/pmd-ruleset.xml +88 -0
  13. local-test-commons-compress-delta-03/diff/ref.diff +87 -0
  14. local-test-commons-compress-delta-03/fuzz-tooling/CITATION.cff +46 -0
  15. local-test-commons-compress-full-01-vuln_5/fuzz-tooling/infra/base-images/base-builder/sanitizers/pysecsan/tests/poe/ansible-runner-cve-2021-4041/fuzz_ansible_runner.py +64 -0
  16. local-test-commons-compress-full-01-vuln_5/fuzz-tooling/infra/base-images/base-builder/sanitizers/pysecsan/tests/poe/pytorch-lightning-1.5.10/fuzz_pytorch_lightning.py +67 -0
  17. local-test-commons-compress-full-01-vuln_5/fuzz-tooling/infra/base-images/base-runner/gocoverage/convertcorpus/go.mod +10 -0
  18. local-test-commons-compress-full-01-vuln_5/fuzz-tooling/infra/base-images/base-runner/gocoverage/gocovsum/gocovsum.go +171 -0
  19. local-test-commons-compress-full-01-vuln_5/fuzz-tooling/infra/base-images/base-runner/gocoverage/pprof-merge/LICENSE +201 -0
  20. local-test-commons-compress-full-01-vuln_5/fuzz-tooling/infra/base-images/base-runner/gocoverage/pprof-merge/main.go +68 -0
local-test-commons-compress-delta-03/afc-commons-compress/BUILDING.md ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!---
2
+ Licensed to the Apache Software Foundation (ASF) under one or more
3
+ contributor license agreements. See the NOTICE file distributed with
4
+ this work for additional information regarding copyright ownership.
5
+ The ASF licenses this file to You under the Apache License, Version 2.0
6
+ (the "License"); you may not use this file except in compliance with
7
+ the License. You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ -->
17
+ # Building Apache Commons Compress
18
+
19
+ In order to build Commons Compress a JDK implementation 8 or higher
20
+ and Apache Maven 3.x are required. **Note that Commons Compress
21
+ currently doesn't build on JDK 14+, we will address this before
22
+ releasing Compress 1.21**.
23
+
24
+ To install the jars into your local Maven repository simply run
25
+
26
+ mvn clean install
27
+
28
+ which will also run the unit tests.
29
+
30
+ Some tests are only run when specific profiles are enabled, these
31
+ tests require a lot of disk space as they test behavior for very large
32
+ archives.
33
+
34
+ mvn test -Prun-tar-it
35
+
36
+ runs tests for tar archives and requires more than 8GiB of disk space.
37
+
38
+ mvn test -Prun-zip-it
39
+
40
+ runs tests for zip archives that require up to 20 GiB of disk
41
+ space. In addition the tests will run for a long time (more than ten
42
+ minutes, maybe even longer depending on your hardware) and heavily
43
+ load the CPU at times.
44
+
45
+ ## Building the Site
46
+
47
+ The site build produces license release audit (aka RAT) reports as
48
+ well as PMD and findbugs reports. Clirr didn't work for us anymore so
49
+ we switched to japicmp, the same is true for Cobertura which we had to
50
+ replace with jacoco.
51
+
52
+ japicmp requires the jar to be present when the site is built,
53
+ therefore the package goal must be executed before creating the site.
54
+
55
+ mvn package site -Pjacoco
56
+
57
+ builds the site.
local-test-commons-compress-delta-03/afc-commons-compress/CODE_OF_CONDUCT.md ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ Licensed to the Apache Software Foundation (ASF) under one or more
3
+ contributor license agreements. See the NOTICE file distributed with
4
+ this work for additional information regarding copyright ownership.
5
+ The ASF licenses this file to You under the Apache License, Version 2.0
6
+ (the "License"); you may not use this file except in compliance with
7
+ the License. You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ -->
17
+ The Apache code of conduct page is [https://www.apache.org/foundation/policies/conduct.html](https://www.apache.org/foundation/policies/conduct.html).
local-test-commons-compress-delta-03/afc-commons-compress/NOTICE.txt ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ Apache Commons Compress
2
+ Copyright 2002-2025 The Apache Software Foundation
3
+
4
+ This product includes software developed at
5
+ The Apache Software Foundation (https://www.apache.org/).
local-test-commons-compress-delta-03/afc-commons-compress/README.txt ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Apache Commons Compress
2
+ =======================
3
+
4
+ Commons Compress is a Java library for working with various
5
+ compression and archiving formats.
6
+
7
+ For full documentation see https://commons.apache.org/proper/commons-compress/
8
+
9
+ ## Apache Commons Compress was derived from various sources, including:
10
+
11
+ Original BZip2 classes contributed by Keiron Liddle
12
+ <keiron@aftexsw.com>, Aftex Software to the Apache Ant project.
13
+ They are based on a port of Julian Seward's libbzip2.
14
+
15
+ Original Tar classes from contributors of the Apache Ant project.
16
+
17
+ Original Zip classes from contributors of the Apache Ant project.
18
+
19
+ Original CPIO classes contributed by Markus Kuss and the jRPM project
20
+ (jrpm.sourceforge.net).
21
+
22
+ This distribution includes cryptographic software. The country in
23
+ which you currently reside may have restrictions on the import,
24
+ possession, use, and/or re-export to another country, of encryption
25
+ software. BEFORE using any encryption software, please check your
26
+ country's laws, regulations and policies concerning the import,
27
+ possession, or use, and re-export of encryption software, to see if
28
+ this is permitted. See <http://www.wassenaar.org/> for more
29
+ information.
30
+
31
+ The U.S. Government Department of Commerce, Bureau of Industry and
32
+ Security (BIS), has classified this software as Export Commodity
33
+ Control Number (ECCN) 5D002.C.1, which includes information security
34
+ software using or performing cryptographic functions with asymmetric
35
+ algorithms. The form and manner of this Apache Software Foundation
36
+ distribution makes it eligible for export under the License Exception
37
+ ENC Technology Software Unrestricted (TSU) exception (see the BIS
38
+ Export Administration Regulations, Section 740.13) for both object
39
+ code and source code.
40
+
41
+ The following provides more details on the included cryptographic
42
+ software:
43
+ * the 7zip package can read AES encrypted archives
local-test-commons-compress-delta-03/afc-commons-compress/RELEASE-NOTES.txt ADDED
The diff for this file is too large to render. See raw diff
 
local-test-commons-compress-delta-03/afc-commons-compress/SECURITY.md ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!---
2
+ Licensed to the Apache Software Foundation (ASF) under one or more
3
+ contributor license agreements. See the NOTICE file distributed with
4
+ this work for additional information regarding copyright ownership.
5
+ The ASF licenses this file to You under the Apache License, Version 2.0
6
+ (the "License"); you may not use this file except in compliance with
7
+ the License. You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ -->
17
+ The Apache Commons security page is [https://commons.apache.org/security.html](https://commons.apache.org/security.html).
local-test-commons-compress-delta-03/afc-commons-compress/pom.xml ADDED
@@ -0,0 +1,637 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
19
+ <modelVersion>4.0.0</modelVersion>
20
+ <parent>
21
+ <groupId>org.apache.commons</groupId>
22
+ <artifactId>commons-parent</artifactId>
23
+ <version>79</version>
24
+ </parent>
25
+ <artifactId>commons-compress</artifactId>
26
+ <version>1.28.0-SNAPSHOT</version>
27
+ <name>Apache Commons Compress</name>
28
+ <url>https://commons.apache.org/proper/commons-compress/</url>
29
+ <inceptionYear>2002</inceptionYear> <!-- from NOTICE file -->
30
+ <!-- The description is not indented to make it look better in the release notes -->
31
+ <description>
32
+ Apache Commons Compress defines an API for working with
33
+ compression and archive formats. These include bzip2, gzip, pack200,
34
+ LZMA, XZ, Snappy, traditional Unix Compress, DEFLATE, DEFLATE64, LZ4,
35
+ Brotli, Zstandard and ar, cpio, jar, tar, zip, dump, 7z, arj.
36
+ </description>
37
+ <properties>
38
+ <maven.compiler.source>1.8</maven.compiler.source>
39
+ <maven.compiler.target>1.8</maven.compiler.target>
40
+ <commons.componentid>compress</commons.componentid>
41
+ <commons.module.name>org.apache.commons.compress</commons.module.name>
42
+ <commons.jira.id>COMPRESS</commons.jira.id>
43
+ <commons.jira.pid>12310904</commons.jira.pid>
44
+ <!-- configuration bits for cutting a release candidate -->
45
+ <commons.release.version>1.28.0</commons.release.version>
46
+ <commons.release.next>1.28.1</commons.release.next>
47
+ <commons.bc.version>1.27.1</commons.bc.version>
48
+ <commons.rc.version>RC1</commons.rc.version>
49
+ <commons.release.isDistModule>true</commons.release.isDistModule>
50
+ <commons.distSvnStagingUrl>scm:svn:https://dist.apache.org/repos/dist/dev/commons/${commons.componentid}</commons.distSvnStagingUrl>
51
+ <commons.manifestlocation>${project.build.outputDirectory}/META-INF</commons.manifestlocation>
52
+ <commons.manifestfile>${commons.manifestlocation}/MANIFEST.MF</commons.manifestfile>
53
+ <commons.osgi.import>
54
+ org.tukaani.xz;resolution:=optional,
55
+ org.brotli.dec;resolution:=optional,
56
+ com.github.luben.zstd;resolution:=optional,
57
+ org.objectweb.asm;resolution:=optional,
58
+ javax.crypto.*;resolution:=optional,
59
+ org.apache.commons.io;resolution:=optional,
60
+ org.apache.commons.io.*;resolution:=optional,
61
+ org.apache.commons.lang3;resolution:=optional,
62
+ org.apache.commons.lang3.reflect;resolution:=optional,
63
+ org.apache.commons.codec;resolution:=optional,
64
+ org.apache.commons.codec.digest;resolution:=optional,
65
+ *
66
+ </commons.osgi.import>
67
+ <!-- only show issues of the current version -->
68
+ <commons.changes.onlyCurrentVersion>true</commons.changes.onlyCurrentVersion>
69
+ <!-- definition uses commons.componentId starting with parent 47,
70
+ this doesn't work for us -->
71
+ <commons.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/commons/content/proper/${project.artifactId}</commons.scmPubUrl>
72
+ <japicmp.skip>false</japicmp.skip>
73
+ <pax.exam.version>4.13.5</pax.exam.version>
74
+ <slf4j.version>2.0.16</slf4j.version>
75
+ <asm.version>9.7.1</asm.version>
76
+ <!-- project.build.outputTimestamp is managed by Maven plugins, see https://maven.apache.org/guides/mini/guide-reproducible-builds.html -->
77
+ <project.build.outputTimestamp>2024-08-20T11:00:46Z</project.build.outputTimestamp>
78
+ <!-- spdx 0.6.0 can require Java 11 depending on undocumented behavior which kicks in for us here. -->
79
+ <commons.spdx.version>0.5.5</commons.spdx.version>
80
+ <!-- JaCoCo: Don't make code coverage worse than: -->
81
+ <commons.jacoco.haltOnFailure>true</commons.jacoco.haltOnFailure>
82
+ <commons.jacoco.classRatio>0.95</commons.jacoco.classRatio>
83
+ <commons.jacoco.instructionRatio>0.85</commons.jacoco.instructionRatio>
84
+ <commons.jacoco.methodRatio>0.88</commons.jacoco.methodRatio>
85
+ <commons.jacoco.branchRatio>0.75</commons.jacoco.branchRatio>
86
+ <commons.jacoco.lineRatio>0.87</commons.jacoco.lineRatio>
87
+ <commons.jacoco.complexityRatio>0.72</commons.jacoco.complexityRatio>
88
+ <!-- Checkstyle -->
89
+ <checkstyle.header.file>${basedir}/src/conf/checkstyle/checkstyle-header.txt</checkstyle.header.file>
90
+ <checkstyle.config.file>${basedir}/src/conf/checkstyle/checkstyle.xml</checkstyle.config.file>
91
+ <checkstyle.suppress.file>${basedir}/src/conf/checkstyle/checkstyle-suppressions.xml</checkstyle.suppress.file>
92
+ <checkstyle.resourceExcludes>LICENSE.txt, NOTICE.txt, **/maven-archiver/pom.properties</checkstyle.resourceExcludes>
93
+ </properties>
94
+
95
+ <issueManagement>
96
+ <system>jira</system>
97
+ <url>https://issues.apache.org/jira/browse/COMPRESS</url>
98
+ </issueManagement>
99
+
100
+ <dependencies>
101
+ <dependency>
102
+ <groupId>org.junit.jupiter</groupId>
103
+ <artifactId>junit-jupiter-params</artifactId>
104
+ <scope>test</scope>
105
+ </dependency>
106
+ <dependency>
107
+ <groupId>org.junit.vintage</groupId>
108
+ <artifactId>junit-vintage-engine</artifactId>
109
+ <scope>test</scope>
110
+ </dependency>
111
+ <dependency>
112
+ <groupId>com.github.luben</groupId>
113
+ <artifactId>zstd-jni</artifactId>
114
+ <version>1.5.6-10</version>
115
+ <optional>true</optional>
116
+ </dependency>
117
+ <dependency>
118
+ <groupId>org.brotli</groupId>
119
+ <artifactId>dec</artifactId>
120
+ <version>0.1.2</version>
121
+ <optional>true</optional>
122
+ </dependency>
123
+ <dependency>
124
+ <groupId>org.tukaani</groupId>
125
+ <artifactId>xz</artifactId>
126
+ <version>1.10</version>
127
+ <optional>true</optional>
128
+ </dependency>
129
+ <dependency>
130
+ <!-- For packages:
131
+ - org.apache.commons.compress.compressors.lz4
132
+ - org.apache.commons.compress.compressors.snappy -->
133
+ <groupId>commons-codec</groupId>
134
+ <artifactId>commons-codec</artifactId>
135
+ <version>1.18.0</version>
136
+ </dependency>
137
+
138
+ <!-- Pack200 -->
139
+ <dependency>
140
+ <groupId>org.ow2.asm</groupId>
141
+ <artifactId>asm</artifactId>
142
+ <version>${asm.version}</version>
143
+ <optional>true</optional>
144
+ </dependency>
145
+
146
+ <!-- Test -->
147
+ <dependency>
148
+ <groupId>org.mockito</groupId>
149
+ <artifactId>mockito-core</artifactId>
150
+ <version>${commons.mockito.version}</version>
151
+ <scope>test</scope>
152
+ </dependency>
153
+ <dependency>
154
+ <groupId>org.mockito</groupId>
155
+ <artifactId>mockito-junit-jupiter</artifactId>
156
+ <version>${commons.mockito.version}</version>
157
+ <scope>test</scope>
158
+ </dependency>
159
+ <dependency>
160
+ <groupId>com.github.marschall</groupId>
161
+ <artifactId>memoryfilesystem</artifactId>
162
+ <version>2.8.1</version>
163
+ <scope>test</scope>
164
+ </dependency>
165
+
166
+ <!-- integration test verifying OSGi bundle works -->
167
+ <dependency>
168
+ <groupId>org.ops4j.pax.exam</groupId>
169
+ <artifactId>pax-exam-container-native</artifactId>
170
+ <version>${pax.exam.version}</version>
171
+ <scope>test</scope>
172
+ </dependency>
173
+ <dependency>
174
+ <groupId>org.ops4j.pax.exam</groupId>
175
+ <artifactId>pax-exam-junit4</artifactId>
176
+ <version>${pax.exam.version}</version>
177
+ <scope>test</scope>
178
+ </dependency>
179
+ <dependency>
180
+ <groupId>org.ops4j.pax.exam</groupId>
181
+ <artifactId>pax-exam-cm</artifactId>
182
+ <version>${pax.exam.version}</version>
183
+ <scope>test</scope>
184
+ </dependency>
185
+ <dependency>
186
+ <groupId>org.ops4j.pax.exam</groupId>
187
+ <artifactId>pax-exam-link-mvn</artifactId>
188
+ <version>${pax.exam.version}</version>
189
+ <scope>test</scope>
190
+ </dependency>
191
+ <dependency>
192
+ <groupId>org.apache.felix</groupId>
193
+ <artifactId>org.apache.felix.framework</artifactId>
194
+ <version>7.0.5</version>
195
+ <scope>test</scope>
196
+ </dependency>
197
+ <dependency>
198
+ <groupId>javax.inject</groupId>
199
+ <artifactId>javax.inject</artifactId>
200
+ <version>1</version>
201
+ <scope>test</scope>
202
+ </dependency>
203
+ <dependency>
204
+ <groupId>commons-io</groupId>
205
+ <artifactId>commons-io</artifactId>
206
+ <version>2.18.0</version>
207
+ </dependency>
208
+ <dependency>
209
+ <groupId>org.apache.commons</groupId>
210
+ <artifactId>commons-lang3</artifactId>
211
+ <version>3.17.0</version>
212
+ </dependency>
213
+ </dependencies>
214
+
215
+ <scm>
216
+ <connection>scm:git:https://gitbox.apache.org/repos/asf/commons-compress.git</connection>
217
+ <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/commons-compress.git</developerConnection>
218
+ <url>https://gitbox.apache.org/repos/asf?p=commons-compress.git</url>
219
+ <tag>HEAD</tag>
220
+ </scm>
221
+
222
+ <build>
223
+ <defaultGoal>clean artifact:check-buildplan verify apache-rat:check checkstyle:check pmd:check japicmp:cmp javadoc:javadoc</defaultGoal>
224
+ <pluginManagement>
225
+ <plugins>
226
+ <!-- Override Javadoc config in parent pom to add JCIP tags -->
227
+ <plugin>
228
+ <groupId>org.apache.maven.plugins</groupId>
229
+ <artifactId>maven-javadoc-plugin</artifactId>
230
+ <version>${commons.javadoc.version}</version>
231
+ <configuration>
232
+ <source>${maven.compiler.source}</source>
233
+ <quiet>true</quiet>
234
+ <encoding>${commons.encoding}</encoding>
235
+ <docencoding>${commons.docEncoding}</docencoding>
236
+ <linksource>true</linksource>
237
+ <links>
238
+ <link>${commons.javadoc.javaee.link}</link>
239
+ <link>https://commons.apache.org/proper/commons-codec/apidocs</link>
240
+ <link>https://commons.apache.org/proper/commons-io/apidocs</link>
241
+ <link>https://commons.apache.org/proper/commons-lang/apidocs</link>
242
+ </links>
243
+ <tags>
244
+ <tag>
245
+ <name>Immutable</name>
246
+ <placement>a</placement>
247
+ <head>This class is immutable</head>
248
+ </tag>
249
+ <tag>
250
+ <name>NotThreadSafe</name>
251
+ <placement>a</placement>
252
+ <head>This class is not thread-safe</head>
253
+ </tag>
254
+ <tag>
255
+ <name>ThreadSafe</name>
256
+ <placement>a</placement>
257
+ <head>This class is thread-safe</head>
258
+ </tag>
259
+ </tags>
260
+ </configuration>
261
+ </plugin>
262
+ <plugin>
263
+ <groupId>org.apache.rat</groupId>
264
+ <artifactId>apache-rat-plugin</artifactId>
265
+ <version>${commons.rat.version}</version>
266
+ <configuration>
267
+ <excludes>
268
+ <!-- files used during tests -->
269
+ <exclude>src/test/resources/**</exclude>
270
+ <exclude>.pmd</exclude>
271
+ <exclude>.projectile</exclude>
272
+ <exclude>.mvn/**</exclude>
273
+ <exclude>.gitattributes</exclude>
274
+ </excludes>
275
+ </configuration>
276
+ </plugin>
277
+ <plugin>
278
+ <groupId>org.apache.felix</groupId>
279
+ <artifactId>maven-bundle-plugin</artifactId>
280
+ <version>${commons.felix.version}</version>
281
+ </plugin>
282
+ <plugin>
283
+ <groupId>com.github.siom79.japicmp</groupId>
284
+ <artifactId>japicmp-maven-plugin</artifactId>
285
+ <configuration>
286
+ <parameter>
287
+ <excludes>
288
+ <!-- Compress 1.21 -> 1.22 updates ASM from 3.2 to 9.2 for pack200 implementation. -->
289
+ <exclude>org.apache.commons.compress.harmony.pack200.Segment</exclude>
290
+ <exclude>org.apache.commons.compress.harmony.pack200.SegmentMethodVisitor</exclude>
291
+ <exclude>org.apache.commons.compress.harmony.pack200.SegmentAnnotationVisitor</exclude>
292
+ <exclude>org.apache.commons.compress.harmony.pack200.SegmentFieldVisitor</exclude>
293
+ </excludes>
294
+ </parameter>
295
+ </configuration>
296
+ </plugin>
297
+ <plugin>
298
+ <groupId>org.apache.maven.plugins</groupId>
299
+ <artifactId>maven-checkstyle-plugin</artifactId>
300
+ <version>${commons.checkstyle-plugin.version}</version>
301
+ <configuration>
302
+ <configLocation>${checkstyle.config.file}</configLocation>
303
+ <enableRulesSummary>false</enableRulesSummary>
304
+ <suppressionsLocation>${checkstyle.suppress.file}</suppressionsLocation>
305
+ <includeTestSourceDirectory>true</includeTestSourceDirectory>
306
+ </configuration>
307
+ </plugin>
308
+ <plugin>
309
+ <groupId>com.github.spotbugs</groupId>
310
+ <artifactId>spotbugs-maven-plugin</artifactId>
311
+ <configuration>
312
+ <threshold>Normal</threshold>
313
+ <effort>Default</effort>
314
+ <excludeFilterFile>${basedir}/src/conf/spotbugs-exclude-filter.xml</excludeFilterFile>
315
+ </configuration>
316
+ </plugin>
317
+ </plugins>
318
+ </pluginManagement>
319
+ <plugins>
320
+ <plugin>
321
+ <!-- create the source and binary assemblies -->
322
+ <artifactId>maven-assembly-plugin</artifactId>
323
+ <configuration>
324
+ <descriptors>
325
+ <descriptor>src/assembly/bin.xml</descriptor>
326
+ <descriptor>src/assembly/src.xml</descriptor>
327
+ </descriptors>
328
+ <tarLongFileMode>gnu</tarLongFileMode>
329
+ </configuration>
330
+ </plugin>
331
+ <plugin>
332
+ <artifactId>maven-jar-plugin</artifactId>
333
+ <configuration>
334
+ <archive>
335
+ <manifestEntries>
336
+ <Main-Class>org.apache.commons.compress.archivers.Lister</Main-Class>
337
+ <Extension-Name>org.apache.commons.compress</Extension-Name>
338
+ <Automatic-Module-Name>${commons.module.name}</Automatic-Module-Name>
339
+ </manifestEntries>
340
+ </archive>
341
+ </configuration>
342
+ </plugin>
343
+ <plugin>
344
+ <groupId>org.apache.felix</groupId>
345
+ <artifactId>maven-bundle-plugin</artifactId>
346
+ <configuration>
347
+ <manifestLocation>${commons.manifestlocation}</manifestLocation>
348
+ </configuration>
349
+ </plugin>
350
+ <plugin>
351
+ <groupId>org.apache.maven.plugins</groupId>
352
+ <artifactId>maven-scm-publish-plugin</artifactId>
353
+ <configuration>
354
+ <ignorePathsToDelete>
355
+ <ignorePathToDelete>javadocs</ignorePathToDelete>
356
+ </ignorePathsToDelete>
357
+ </configuration>
358
+ </plugin>
359
+ <plugin>
360
+ <groupId>org.apache.maven.plugins</groupId>
361
+ <artifactId>maven-pmd-plugin</artifactId>
362
+ <configuration>
363
+ <minimumTokens>200</minimumTokens>
364
+ <targetJdk>${maven.compiler.source}</targetJdk>
365
+ <excludeFromFailureFile>src/conf/pmd-exclude.properties</excludeFromFailureFile>
366
+ <rulesets>
367
+ <ruleset>${basedir}/src/conf/pmd-ruleset.xml</ruleset>
368
+ </rulesets>
369
+ </configuration>
370
+ </plugin>
371
+ <plugin>
372
+ <groupId>com.github.spotbugs</groupId>
373
+ <artifactId>spotbugs-maven-plugin</artifactId>
374
+ </plugin>
375
+ <plugin>
376
+ <groupId>org.apache.maven.plugins</groupId>
377
+ <artifactId>maven-antrun-plugin</artifactId>
378
+ <executions>
379
+ <execution>
380
+ <phase>process-test-resources</phase>
381
+ <configuration>
382
+ <target>
383
+ <untar src="${basedir}/src/test/resources/zstd-tests.tar" dest="${project.build.testOutputDirectory}" />
384
+ </target>
385
+ </configuration>
386
+ <goals>
387
+ <goal>run</goal>
388
+ </goals>
389
+ </execution>
390
+ </executions>
391
+ </plugin>
392
+ <plugin>
393
+ <artifactId>maven-surefire-plugin</artifactId>
394
+ <configuration>
395
+ <systemPropertyVariables>
396
+ <pax.exam.karaf.version>${karaf.version}</pax.exam.karaf.version>
397
+ <commons-compress.version>${project.version}</commons-compress.version>
398
+ </systemPropertyVariables>
399
+ </configuration>
400
+ </plugin>
401
+ <plugin>
402
+ <groupId>org.apache.maven.plugins</groupId>
403
+ <artifactId>maven-checkstyle-plugin</artifactId>
404
+ </plugin>
405
+ </plugins>
406
+ </build>
407
+
408
+ <reporting>
409
+ <plugins>
410
+ <plugin>
411
+ <!-- generate the PMD reports -->
412
+ <groupId>org.apache.maven.plugins</groupId>
413
+ <artifactId>maven-pmd-plugin</artifactId>
414
+ <configuration>
415
+ <minimumTokens>200</minimumTokens>
416
+ <targetJdk>${maven.compiler.source}</targetJdk>
417
+ <excludeFromFailureFile>src/conf/pmd-exclude.properties</excludeFromFailureFile>
418
+ <rulesets>
419
+ <ruleset>${basedir}/src/conf/pmd-ruleset.xml</ruleset>
420
+ </rulesets>
421
+ </configuration>
422
+ </plugin>
423
+ <plugin>
424
+ <groupId>org.apache.maven.plugins</groupId>
425
+ <artifactId>maven-javadoc-plugin</artifactId>
426
+ </plugin>
427
+ <plugin>
428
+ <groupId>com.github.spotbugs</groupId>
429
+ <artifactId>spotbugs-maven-plugin</artifactId>
430
+ </plugin>
431
+ </plugins>
432
+ </reporting>
433
+
434
+ <profiles>
435
+ <!-- Add long running tests as **/*IT.java -->
436
+ <profile>
437
+ <id>run-zip-it</id>
438
+ <build>
439
+ <plugins>
440
+ <plugin>
441
+ <groupId>org.apache.maven.plugins</groupId>
442
+ <artifactId>maven-antrun-plugin</artifactId>
443
+ <executions>
444
+ <execution>
445
+ <phase>process-test-resources</phase>
446
+ <configuration>
447
+ <target>
448
+ <untar src="${basedir}/src/test/resources/zip64support.tar.bz2" dest="${project.build.testOutputDirectory}" compression="bzip2" />
449
+ </target>
450
+ </configuration>
451
+ <goals>
452
+ <goal>run</goal>
453
+ </goals>
454
+ </execution>
455
+ </executions>
456
+ </plugin>
457
+ <plugin>
458
+ <artifactId>maven-surefire-plugin</artifactId>
459
+ <configuration>
460
+ <includes>
461
+ <include>**/zip/*IT.java</include>
462
+ </includes>
463
+ </configuration>
464
+ </plugin>
465
+ </plugins>
466
+ </build>
467
+ </profile>
468
+ <profile>
469
+ <id>run-tar-it</id>
470
+ <build>
471
+ <plugins>
472
+ <plugin>
473
+ <artifactId>maven-surefire-plugin</artifactId>
474
+ <configuration>
475
+ <includes>
476
+ <include>**/tar/*IT.java</include>
477
+ </includes>
478
+ </configuration>
479
+ </plugin>
480
+ </plugins>
481
+ </build>
482
+ </profile>
483
+ <profile>
484
+ <id>java11+</id>
485
+ <activation>
486
+ <jdk>[11,)</jdk>
487
+ </activation>
488
+ <build>
489
+ <plugins>
490
+ <plugin>
491
+ <groupId>org.apache.maven.plugins</groupId>
492
+ <artifactId>maven-javadoc-plugin</artifactId>
493
+ <configuration>
494
+ <release>8</release>
495
+ </configuration>
496
+ </plugin>
497
+ </plugins>
498
+ </build>
499
+ </profile>
500
+ <profile>
501
+ <id>java9+</id>
502
+ <activation>
503
+ <jdk>[9,)</jdk>
504
+ </activation>
505
+ <properties>
506
+ <maven.compiler.release>8</maven.compiler.release>
507
+ <animal.sniffer.skip>true</animal.sniffer.skip>
508
+ <!-- coverall version 4.3.0 does not work with java 9, see https://github.com/trautonen/coveralls-maven-plugin/issues/112 -->
509
+ <coveralls.skip>true</coveralls.skip>
510
+ </properties>
511
+ </profile>
512
+ <profile>
513
+ <id>java17</id>
514
+ <activation>
515
+ <jdk>[17,)</jdk>
516
+ </activation>
517
+ <build>
518
+ <plugins>
519
+ <plugin>
520
+ <groupId>org.apache.maven.plugins</groupId>
521
+ <artifactId>maven-surefire-plugin</artifactId>
522
+ <configuration>
523
+ <argLine>
524
+ ${argLine} --add-opens java.base/java.io=ALL-UNNAMED
525
+ </argLine>
526
+ </configuration>
527
+ </plugin>
528
+ </plugins>
529
+ </build>
530
+ </profile>
531
+ </profiles>
532
+
533
+ <developers>
534
+ <developer>
535
+ <name>Torsten Curdt</name>
536
+ <id>tcurdt</id>
537
+ <email>tcurdt at apache.org</email>
538
+ </developer>
539
+ <developer>
540
+ <name>Stefan Bodewig</name>
541
+ <id>bodewig</id>
542
+ <email>bodewig at apache.org</email>
543
+ </developer>
544
+ <developer>
545
+ <name>Sebastian Bazley</name>
546
+ <id>sebb</id>
547
+ <email>sebb at apache.org</email>
548
+ </developer>
549
+ <developer>
550
+ <name>Christian Grobmeier</name>
551
+ <id>grobmeier</id>
552
+ <email>grobmeier at apache.org</email>
553
+ </developer>
554
+ <developer>
555
+ <name>Julius Davies</name>
556
+ <id>julius</id>
557
+ <email>julius at apache.org</email>
558
+ </developer>
559
+ <developer>
560
+ <name>Damjan Jovanovic</name>
561
+ <id>damjan</id>
562
+ <email>damjan at apache.org</email>
563
+ </developer>
564
+ <developer>
565
+ <name>Emmanuel Bourg</name>
566
+ <id>ebourg</id>
567
+ <email>ebourg at apache.org</email>
568
+ </developer>
569
+ <developer>
570
+ <id>ggregory</id>
571
+ <name>Gary Gregory</name>
572
+ <email>ggregory at apache.org</email>
573
+ <url>https://www.garygregory.com</url>
574
+ <organization>The Apache Software Foundation</organization>
575
+ <organizationUrl>https://www.apache.org/</organizationUrl>
576
+ <roles>
577
+ <role>PMC Member</role>
578
+ </roles>
579
+ <timezone>America/New_York</timezone>
580
+ <properties>
581
+ <picUrl>https://people.apache.org/~ggregory/img/garydgregory80.png</picUrl>
582
+ </properties>
583
+ </developer>
584
+ <developer>
585
+ <name>Rob Tompkins</name>
586
+ <id>chtompki</id>
587
+ <email>chtompki at apache.org</email>
588
+ </developer>
589
+ <developer>
590
+ <name>Peter Alfred Lee</name>
591
+ <id>peterlee</id>
592
+ <email>peterlee at apache.org</email>
593
+ </developer>
594
+ </developers>
595
+
596
+ <contributors>
597
+ <contributor>
598
+ <name>Wolfgang Glas</name>
599
+ <email>wolfgang.glas at ev-i.at</email>
600
+ </contributor>
601
+ <contributor>
602
+ <name>Christian Kohlschütte</name>
603
+ <email>ck@newsclub.de</email>
604
+ </contributor>
605
+ <contributor>
606
+ <name>Bear Giles</name>
607
+ <email>bgiles@coyotesong.com</email>
608
+ </contributor>
609
+ <contributor>
610
+ <name>Michael Kuss</name>
611
+ <email>mail at michael minus kuss.de</email>
612
+ </contributor>
613
+ <contributor>
614
+ <name>Lasse Collin</name>
615
+ <email>lasse.collin@tukaani.org</email>
616
+ </contributor>
617
+ <contributor>
618
+ <name>John Kodis</name>
619
+ </contributor>
620
+ <contributor>
621
+ <name>BELUGA BEHR</name>
622
+ </contributor>
623
+ <contributor>
624
+ <name>Simon Spero</name>
625
+ <email>sesuncedu@gmail.com</email>
626
+ </contributor>
627
+ <contributor>
628
+ <name>Michael Hausegger</name>
629
+ <email>hausegger.michael@googlemail.com</email>
630
+ </contributor>
631
+ <contributor>
632
+ <name>Arturo Bernal</name>
633
+ <email>arturobernalg@yahoo.com</email>
634
+ </contributor>
635
+ </contributors>
636
+
637
+ </project>
local-test-commons-compress-delta-03/afc-commons-compress/src/assembly/bin.xml ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ Licensed to the Apache Software Foundation (ASF) under one or more
3
+ contributor license agreements. See the NOTICE file distributed with
4
+ this work for additional information regarding copyright ownership.
5
+ The ASF licenses this file to You under the Apache License, Version 2.0
6
+ (the "License"); you may not use this file except in compliance with
7
+ the License. You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ -->
17
+ <assembly xmlns="http://maven.apache.org/ASSEMBLY/2.2.0"
18
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19
+ xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.2.0 https://maven.apache.org/xsd/assembly-2.2.0.xsd">
20
+ <id>bin</id>
21
+ <formats>
22
+ <format>tar.gz</format>
23
+ <format>zip</format>
24
+ </formats>
25
+ <includeSiteDirectory>false</includeSiteDirectory>
26
+ <fileSets>
27
+ <fileSet>
28
+ <includes>
29
+ <include>LICENSE.txt</include>
30
+ <include>NOTICE.txt</include>
31
+ <include>README.txt</include>
32
+ <include>RELEASE-NOTES.txt</include>
33
+ </includes>
34
+ </fileSet>
35
+ <fileSet>
36
+ <directory>target</directory>
37
+ <outputDirectory></outputDirectory>
38
+ <includes>
39
+ <include>*.jar</include>
40
+ </includes>
41
+ <fileMode>644</fileMode>
42
+ </fileSet>
43
+ <fileSet>
44
+ <directory>target/site/apidocs</directory>
45
+ <outputDirectory>apidocs</outputDirectory>
46
+ </fileSet>
47
+ </fileSets>
48
+ </assembly>
local-test-commons-compress-delta-03/afc-commons-compress/src/changes/changes.xml ADDED
The diff for this file is too large to render. See raw diff
 
local-test-commons-compress-delta-03/afc-commons-compress/src/changes/release-notes.vm ADDED
@@ -0,0 +1,164 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## Licensed to the Apache Software Foundation (ASF) under one
2
+ ## or more contributor license agreements. See the NOTICE file
3
+ ## distributed with this work for additional information
4
+ ## regarding copyright ownership. The ASF licenses this file
5
+ ## to you under the Apache License, Version 2.0 (the
6
+ ## "License"); you may not use this file except in compliance
7
+ ## with the License. You may obtain a copy of the License at
8
+ ##
9
+ ## http://www.apache.org/licenses/LICENSE-2.0
10
+ ##
11
+ ## Unless required by applicable law or agreed to in writing,
12
+ ## software distributed under the License is distributed on an
13
+ ## "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ ## KIND, either express or implied. See the License for the
15
+ ## specific language governing permissions and limitations
16
+ ## under the License.
17
+
18
+ Apache Commons Compress
19
+ Version ${version}
20
+ Release Notes
21
+
22
+ $introduction.replaceAll("(?<!\015)\012", "
23
+ ")
24
+
25
+ ##
26
+ ## N.B. the available variables are described here:
27
+ ## http://maven.apache.org/plugins/maven-changes-plugin/examples/using-a-custom-announcement-template.html
28
+ ##
29
+ ## Hack to improve layout: replace all pairs of spaces with a single new-line
30
+ $release.description.replaceAll(" ", "
31
+ ")
32
+
33
+ ##
34
+ #if ($release.getActions().size() == 0)
35
+ No changes defined in this version.
36
+ #else
37
+ Changes in this version
38
+ -----------------------
39
+
40
+ Changes in this version include the following.
41
+
42
+ ## indent to be used if there is no issue attribute.
43
+ ## should be the same as the indent in the changes.xml file
44
+ ## less 2 spaces for the 'o' and trailing space
45
+ #set($indent=' ')
46
+ #if ($release.getActions('add').size() !=0)
47
+ New Features
48
+ ------------
49
+
50
+ #foreach($actionItem in $release.getActions('add'))
51
+ ## Use replaceAll to fix up LF-only line ends on Windows.
52
+ #set($action=$actionItem.getAction().replaceAll("\n","
53
+ "))
54
+ #if ($actionItem.getIssue())
55
+ #set($issue=$actionItem.getIssue())
56
+ #else
57
+ #set($issue="")
58
+ #end
59
+ #if ($actionItem.getDueTo())
60
+ #set($dueto=$actionItem.getDueTo())
61
+ #else
62
+ #set($dueto="")
63
+ #end
64
+ * #if($!issue != "") $issue: #else$indent#end ${action} #if($!dueto != "")Thanks to $dueto. #end
65
+
66
+ #set($issue="")
67
+ #set($dueto="")
68
+ #end
69
+ #end
70
+
71
+ #if ($release.getActions('fix').size() !=0)
72
+ Fixed Bugs
73
+ ----------
74
+
75
+ #foreach($actionItem in $release.getActions('fix'))
76
+ ## Use replaceAll to fix up LF-only line ends on Windows.
77
+ #set($action=$actionItem.getAction().replaceAll("\n","
78
+ "))
79
+ #if ($actionItem.getIssue())
80
+ #set($issue=$actionItem.getIssue())
81
+ #else
82
+ #set($issue="")
83
+ #end
84
+ #if ($actionItem.getDueTo())
85
+ #set($dueto=$actionItem.getDueTo())
86
+ #else
87
+ #set($dueto="")
88
+ #end
89
+ * #if($!issue != "") $issue: #else$indent#end ${action} #if($!dueto != "")Thanks to $dueto. #end
90
+
91
+ #set($issue="")
92
+ #set($dueto="")
93
+ #end
94
+ #end
95
+
96
+ #if ($release.getActions('update').size() !=0)
97
+ Changes
98
+ -------
99
+
100
+ #foreach($actionItem in $release.getActions('update'))
101
+ ## Use replaceAll to fix up LF-only line ends on Windows.
102
+ #set($action=$actionItem.getAction().replaceAll("\n","
103
+ "))
104
+ #if ($actionItem.getIssue())
105
+ #set($issue=$actionItem.getIssue())
106
+ #else
107
+ #set($issue="")
108
+ #end
109
+ #if ($actionItem.getDueTo())
110
+ #set($dueto=$actionItem.getDueTo())
111
+ #else
112
+ #set($dueto="")
113
+ #end
114
+ * #if($!issue != "") $issue: #else$indent#end ${action} #if($!dueto != "")Thanks to $dueto. #end
115
+
116
+ #set($issue="")
117
+ #set($dueto="")
118
+ #end
119
+ #end
120
+
121
+ #if ($release.getActions('remove').size() !=0)
122
+ Removed
123
+ -------
124
+
125
+ #foreach($actionItem in $release.getActions('remove'))
126
+ ## Use replaceAll to fix up LF-only line ends on Windows.
127
+ #set($action=$actionItem.getAction().replaceAll("\n","
128
+ "))
129
+ #if ($actionItem.getIssue())
130
+ #set($issue=$actionItem.getIssue())
131
+ #else
132
+ #set($issue="")
133
+ #end
134
+ #if ($actionItem.getDueTo())
135
+ #set($dueto=$actionItem.getDueTo())
136
+ #else
137
+ #set($dueto="")
138
+ #end
139
+ * #if($!issue != "") $issue: #else$indent#end ${action} #if($!dueto != "")Thanks to $dueto. #end
140
+ ##
141
+ #set($issue="")
142
+ #set($dueto="")
143
+ #end
144
+ #end
145
+ ## End of main loop
146
+ #end
147
+ ##
148
+
149
+ Resources
150
+ ---------
151
+
152
+ Historical list of changes: ${project.url}changes.html
153
+
154
+ For complete information on ${project.name}, including instructions on how to submit bug reports,
155
+ patches, or suggestions for improvement, see the ${project.name} website:
156
+
157
+ ${project.url}
158
+
159
+ Download page: ${project.url}download_compress.cgi
160
+
161
+ Have fun!
162
+ -Apache Commons Team
163
+
164
+ -----------------------------------------------------------------------------
local-test-commons-compress-delta-03/afc-commons-compress/src/conf/checkstyle/checkstyle-header.txt ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * https://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing,
13
+ * software distributed under the License is distributed on an
14
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ * KIND, either express or implied. See the License for the
16
+ * specific language governing permissions and limitations
17
+ * under the License.
18
+ */
local-test-commons-compress-delta-03/afc-commons-compress/src/conf/pmd-ruleset.xml ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+
4
+ Licensed to the Apache Software Foundation (ASF) under one or more
5
+ contributor license agreements. See the NOTICE file distributed with
6
+ this work for additional information regarding copyright ownership.
7
+ The ASF licenses this file to You under the Apache License, Version 2.0
8
+ (the "License"); you may not use this file except in compliance with
9
+ the License. You may obtain a copy of the License at
10
+
11
+ http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing, software
14
+ distributed under the License is distributed on an "AS IS" BASIS,
15
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ See the License for the specific language governing permissions and
17
+ limitations under the License.
18
+
19
+ -->
20
+ <ruleset name="compress"
21
+ xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
22
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23
+ xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 https://pmd.sourceforge.net/ruleset_2_0_0.xsd">
24
+
25
+ <description>Apache Commons Compress custom</description>
26
+
27
+ <!-- from https://raw.githubusercontent.com/apache/maven-pmd-plugin/HEAD/src/main/resources/rulesets/java/maven-pmd-plugin-default.xml -->
28
+ <rule ref="category/java/bestpractices.xml/AvoidUsingHardCodedIP" />
29
+ <rule ref="category/java/bestpractices.xml/CheckResultSet" />
30
+ <rule ref="category/java/bestpractices.xml/PrimitiveWrapperInstantiation" />
31
+ <rule ref="category/java/bestpractices.xml/UnusedFormalParameter" />
32
+ <rule ref="category/java/bestpractices.xml/UnusedLocalVariable" />
33
+ <rule ref="category/java/bestpractices.xml/UnusedPrivateField" />
34
+ <rule ref="category/java/bestpractices.xml/UnusedPrivateMethod" />
35
+
36
+ <!-- Apache Commons Compress custom <rule ref="category/java/codestyle.xml/EmptyControlStatement" /> -->
37
+ <rule ref="category/java/codestyle.xml/ExtendsObject" />
38
+ <rule ref="category/java/codestyle.xml/ForLoopShouldBeWhileLoop" />
39
+ <rule ref="category/java/codestyle.xml/TooManyStaticImports" />
40
+ <rule ref="category/java/codestyle.xml/UnnecessaryFullyQualifiedName" />
41
+ <rule ref="category/java/codestyle.xml/UnnecessaryImport" />
42
+ <rule ref="category/java/codestyle.xml/UnnecessaryModifier" />
43
+ <rule ref="category/java/codestyle.xml/UnnecessaryReturn" />
44
+ <rule ref="category/java/codestyle.xml/UnnecessarySemicolon" />
45
+ <rule ref="category/java/codestyle.xml/UselessParentheses" />
46
+ <rule ref="category/java/codestyle.xml/UselessQualifiedThis" />
47
+
48
+ <rule ref="category/java/design.xml/CollapsibleIfStatements" />
49
+ <rule ref="category/java/design.xml/SimplifiedTernary" />
50
+ <rule ref="category/java/design.xml/UselessOverridingMethod" />
51
+
52
+ <rule ref="category/java/errorprone.xml/AvoidBranchingStatementAsLastInLoop" />
53
+ <rule ref="category/java/errorprone.xml/AvoidDecimalLiteralsInBigDecimalConstructor" />
54
+ <rule ref="category/java/errorprone.xml/AvoidMultipleUnaryOperators" />
55
+ <rule ref="category/java/errorprone.xml/AvoidUsingOctalValues" />
56
+ <rule ref="category/java/errorprone.xml/BrokenNullCheck" />
57
+ <rule ref="category/java/errorprone.xml/CheckSkipResult" />
58
+ <rule ref="category/java/errorprone.xml/ClassCastExceptionWithToArray" />
59
+ <rule ref="category/java/errorprone.xml/DontUseFloatTypeForLoopIndices" />
60
+ <!-- Apache Commons Compress custom <rule ref="category/java/errorprone.xml/EmptyCatchBlock" /> -->
61
+ <rule ref="category/java/errorprone.xml/JumbledIncrementer" />
62
+ <rule ref="category/java/errorprone.xml/MisplacedNullCheck" />
63
+ <rule ref="category/java/errorprone.xml/OverrideBothEqualsAndHashcode" />
64
+ <rule ref="category/java/errorprone.xml/ReturnFromFinallyBlock" />
65
+ <rule ref="category/java/errorprone.xml/UnconditionalIfStatement" />
66
+ <rule ref="category/java/errorprone.xml/UnnecessaryConversionTemporary" />
67
+ <rule ref="category/java/errorprone.xml/UnusedNullCheckInEquals" />
68
+ <rule ref="category/java/errorprone.xml/UselessOperationOnImmutable" />
69
+
70
+ <rule ref="category/java/multithreading.xml/AvoidThreadGroup" />
71
+ <rule ref="category/java/multithreading.xml/DontCallThreadRun" />
72
+ <rule ref="category/java/multithreading.xml/DoubleCheckedLocking" />
73
+
74
+ <rule ref="category/java/performance.xml/BigIntegerInstantiation" />
75
+
76
+ <!-- Apache Commons Compress custom -->
77
+ <rule ref="category/java/errorprone.xml/EmptyCatchBlock">
78
+ <properties>
79
+ <property name="allowCommentedBlocks" value="true" />
80
+ <property name="allowExceptionNameRegex" value="^(ignored|expected)$" />
81
+ </properties>
82
+ </rule>
83
+ <rule ref="category/java/codestyle.xml/EmptyControlStatement">
84
+ <properties>
85
+ <property name="allowCommentedBlocks" value="true" />
86
+ </properties>
87
+ </rule>
88
+ </ruleset>
local-test-commons-compress-delta-03/diff/ref.diff ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java b/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java
2
+ index 0bc1ac0d0..b0b6e1075 100644
3
+ --- a/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java
4
+ +++ b/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java
5
+ @@ -1564,8 +1564,81 @@ private void processPaxHeader(final String key, final String val) throws IOExcep
6
+ */
7
+ private void processPaxHeader(final String key, final String val, final Map<String, String> headers) throws IOException {
8
+ /*
9
+ - * This function is currently just a stub, and needs implemented.
10
+ + * The following headers are defined for Pax. charset: cannot use these without changing TarArchiveEntry fields mtime atime ctime
11
+ + * LIBARCHIVE.creationtime comment gid, gname linkpath size uid,uname SCHILY.devminor, SCHILY.devmajor: don't have setters/getters for those
12
+ + *
13
+ + * GNU sparse files use additional members, we use GNU.sparse.size to detect the 0.0 and 0.1 versions and GNU.sparse.realsize for 1.0.
14
+ + *
15
+ + * star files use additional members of which we use SCHILY.filetype in order to detect star sparse files.
16
+ + *
17
+ + * If called from addExtraPaxHeader, these additional headers must be already present .
18
+ */
19
+ + switch (key) {
20
+ + case "path":
21
+ + setName(val);
22
+ + break;
23
+ + case "linkpath":
24
+ + setLinkName(val);
25
+ + break;
26
+ + case "gid":
27
+ + setGroupId(ParsingUtils.parseLongValue(val));
28
+ + break;
29
+ + case "gname":
30
+ + setGroupName(val);
31
+ + break;
32
+ + case "uid":
33
+ + setUserId(ParsingUtils.parseLongValue(val));
34
+ + break;
35
+ + case "uname":
36
+ + setUserName(val);
37
+ + break;
38
+ + case "size":
39
+ + final long size = ParsingUtils.parseLongValue(val);
40
+ + if (size < 0) {
41
+ + throw new IOException("Corrupted TAR archive. Entry size is negative");
42
+ + }
43
+ + setSize(size);
44
+ + break;
45
+ + case "mtime":
46
+ + setLastModifiedTime(FileTime.from(parseInstantFromDecimalSeconds(val)));
47
+ + break;
48
+ + case "atime":
49
+ + setLastAccessTime(FileTime.from(parseInstantFromDecimalSeconds(val)));
50
+ + break;
51
+ + case "ctime":
52
+ + setStatusChangeTime(FileTime.from(parseInstantFromDecimalSeconds(val)));
53
+ + break;
54
+ + case "LIBARCHIVE.creationtime":
55
+ + setCreationTime(FileTime.from(parseInstantFromDecimalSeconds(val)));
56
+ + break;
57
+ + case "SCHILY.devminor":
58
+ + final int devMinor = ParsingUtils.parseIntValue(val);
59
+ + if (devMinor < 0) {
60
+ + throw new IOException("Corrupted TAR archive. Dev-Minor is negative");
61
+ + }
62
+ + setDevMinor(devMinor);
63
+ + break;
64
+ + case "SCHILY.devmajor":
65
+ + final int devMajor = ParsingUtils.parseIntValue(val);
66
+ + if (devMajor < 0) {
67
+ + throw new IOException("Corrupted TAR archive. Dev-Major is negative");
68
+ + }
69
+ + setDevMajor(devMajor);
70
+ + break;
71
+ + case TarGnuSparseKeys.SIZE:
72
+ + fillGNUSparse0xData(headers);
73
+ + break;
74
+ + case TarGnuSparseKeys.REALSIZE:
75
+ + fillGNUSparse1xData(headers);
76
+ + break;
77
+ + case "SCHILY.filetype":
78
+ + if ("sparse".equals(val)) {
79
+ + fillStarSparseData(headers);
80
+ + }
81
+ + break;
82
+ + default:
83
+ + extraPaxHeaders.put(key, val);
84
+ + }
85
+ }
86
+
87
+ private void readFileMode(final Path file, final String normalizedName, final LinkOption... options) throws IOException {
local-test-commons-compress-delta-03/fuzz-tooling/CITATION.cff ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cff-version: 1.2.0
2
+ title: OSS-Fuzz
3
+ message: >-
4
+ If you use this software, please cite it using the
5
+ metadata from this file.
6
+ type: software
7
+ authors:
8
+ - given-names: Abhishek
9
+ family-names: Arya
10
+ affiliation: Google LLC
11
+ email: aarya@google.com
12
+ orcid: 'https://orcid.org/0009-0009-4558-4314'
13
+ - given-names: Oliver
14
+ family-names: Chang
15
+ email: ochang@google.com
16
+ affiliation: Google LLC
17
+ orcid: 'https://orcid.org/0009-0006-3181-4551'
18
+ - given-names: Jonathan
19
+ family-names: Metzman
20
+ email: metzman@google.com
21
+ affiliation: Google LLC
22
+ orcid: 'https://orcid.org/0000-0002-7042-0444'
23
+ - given-names: Kostya
24
+ family-names: Serebryany
25
+ email: kcc@google.com
26
+ affiliation: Google LLC
27
+ orcid: 'https://orcid.org/0009-0009-2379-3641'
28
+ - given-names: Dongge
29
+ family-names: Liu
30
+ email: donggeliu@google.com
31
+ affiliation: Google LLC
32
+ orcid: 'https://orcid.org/0000-0003-4821-7033'
33
+ repository-code: 'https://github.com/google/oss-fuzz'
34
+ abstract: >-
35
+ OSS-Fuzz is an open-source project by Google that provides
36
+ continuous fuzzing for open-source software. It aims to
37
+ make common open-source software more secure and stable by
38
+ combining modern fuzzing techniques with scalable,
39
+ distributed execution. As of August 2023, OSS-Fuzz has
40
+ helped identify and fix over 10,000 vulnerabilities and
41
+ 36,000 bugs across 1,000 projects.
42
+ keywords:
43
+ - open-source
44
+ - fuzzing
45
+ license: Apache-2.0
46
+
local-test-commons-compress-full-01-vuln_5/fuzz-tooling/infra/base-images/base-builder/sanitizers/pysecsan/tests/poe/ansible-runner-cve-2021-4041/fuzz_ansible_runner.py ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/python3
2
+ # Copyright 2022 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ """Targets: https://github.com/advisories/GHSA-6j58-grhv-2769."""
16
+
17
+ import sys
18
+ import atheris
19
+ import pexpect
20
+ import pysecsan
21
+ import ansible_runner
22
+ from ansible_runner.config.runner import RunnerConfig
23
+
24
+ pysecsan.add_hooks()
25
+
26
+
27
+ def test_one_input(data):
28
+ """Fuzzer entrypoint."""
29
+ fdp = atheris.FuzzedDataProvider(data)
30
+
31
+ conf = RunnerConfig('/tmp/')
32
+ conf.suppress_ansible_output = True
33
+ conf.expect_passwords = {pexpect.TIMEOUT: None, pexpect.EOF: None}
34
+ conf.cwd = str('/tmp/')
35
+ conf.env = {}
36
+ conf.job_timeout = 10
37
+ conf.idle_timeout = 0
38
+ conf.pexpect_timeout = 2.
39
+ conf.pexpect_use_poll = True
40
+ conf.command = 'from_fuzzer'
41
+
42
+ runner = ansible_runner.Runner(conf)
43
+ runner.resource_profiling = True
44
+ # rc.resource_profiling_base_cgroup = "; exec-san"
45
+ assistance = True
46
+ if assistance and fdp.ConsumeIntInRange(1, 100) > 80:
47
+ conf.resource_profiling_base_cgroup = 'FROMFUZZ'
48
+ else:
49
+ conf.resource_profiling_base_cgroup = fdp.ConsumeUnicodeNoSurrogates(24)
50
+ try:
51
+ runner.run()
52
+ except (RuntimeError, ValueError, TypeError) as _:
53
+ pass
54
+
55
+
56
+ def main():
57
+ """Set up and start fuzzing."""
58
+ atheris.instrument_all()
59
+ atheris.Setup(sys.argv, test_one_input, enable_python_coverage=True)
60
+ atheris.Fuzz()
61
+
62
+
63
+ if __name__ == '__main__':
64
+ main()
local-test-commons-compress-full-01-vuln_5/fuzz-tooling/infra/base-images/base-builder/sanitizers/pysecsan/tests/poe/pytorch-lightning-1.5.10/fuzz_pytorch_lightning.py ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/local/bin/python3
2
+ #
3
+ # Copyright 2022 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+ #
17
+ ################################################################################
18
+ """Exploit pytorch lightning with fuzzer's input as a random env variable.
19
+ This PoC is extended from a report in GitHub Advisory Database:
20
+ https://github.com/advisories/GHSA-r5qj-cvf9-p85h
21
+ The original report documents an exploit using a specific environment variable,
22
+ we show a way to achieve the same exploit with an arbitrary env variable.
23
+ """
24
+
25
+ import os
26
+ import sys
27
+ import atheris
28
+ import pysecsan
29
+
30
+ pysecsan.add_hooks()
31
+
32
+ with atheris.instrument_imports():
33
+ from pytorch_lightning import Trainer
34
+ from pytorch_lightning.utilities.argparse import parse_env_variables
35
+
36
+
37
+ def prepare_fuzzing_input(data):
38
+ """Prepare the data needed by the exploit with input data from fuzzers."""
39
+ data = data.replace(b'\0', b'')
40
+ env_name = 'AN_ARBITRARY_ENV_NAME'
41
+ return data, env_name
42
+
43
+
44
+ def exploit_target(env_value, env_name):
45
+ """This target is based on a snippet from the official documentation of
46
+ `parse_env_variables`:
47
+ https://pytorch-lightning.readthedocs.io/en/stable/api/pytorch_lightning.utilities.argparse.html # pylint: disable=line-too-long
48
+ It might not be the most realistic example,
49
+ but serves as a PoC to show that SystemSan works for Python."""
50
+ os.environb[env_name.encode()] = env_value
51
+ parse_env_variables(Trainer, template=env_name)
52
+
53
+
54
+ def TestOneInput(data): # pylint: disable=invalid-name
55
+ """Exploit the target only with input data from fuzzers."""
56
+ env_value, env_name = prepare_fuzzing_input(data)
57
+ exploit_target(env_value, env_name)
58
+
59
+
60
+ def main():
61
+ """Fuzz target with atheris."""
62
+ atheris.Setup(sys.argv, TestOneInput)
63
+ atheris.Fuzz()
64
+
65
+
66
+ if __name__ == '__main__':
67
+ main()
local-test-commons-compress-full-01-vuln_5/fuzz-tooling/infra/base-images/base-runner/gocoverage/convertcorpus/go.mod ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ module oss-fuzz.com/gocoverage/convertcorpus
2
+
3
+ go 1.19
4
+
5
+ require github.com/AdamKorcz/go-118-fuzz-build v0.0.0-20221110144148-3ffc89b74f84
6
+
7
+ require (
8
+ github.com/AdaLogics/go-fuzz-headers v0.0.0-20220824214621-3c06a36a6952 // indirect
9
+ github.com/cyphar/filepath-securejoin v0.2.3 // indirect
10
+ )
local-test-commons-compress-full-01-vuln_5/fuzz-tooling/infra/base-images/base-runner/gocoverage/gocovsum/gocovsum.go ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Copyright 2023 Google LLC
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ package main
16
+
17
+ import (
18
+ "encoding/json"
19
+ "flag"
20
+ "fmt"
21
+ "log"
22
+
23
+ "go/ast"
24
+ "go/parser"
25
+ "go/token"
26
+
27
+ "golang.org/x/tools/cover"
28
+ )
29
+
30
+ type CoverageTotal struct {
31
+ Count int `json:"count"`
32
+ Covered int `json:"covered"`
33
+ Uncovered int `json:"notcovered"`
34
+ Percent float64 `json:"percent"`
35
+ }
36
+
37
+ type CoverageTotals struct {
38
+ Functions CoverageTotal `json:"functions,omitempty"`
39
+ Lines CoverageTotal `json:"lines,omitempty"`
40
+ Regions CoverageTotal `json:"regions,omitempty"`
41
+ Instantiations CoverageTotal `json:"instantiations,omitempty"`
42
+ Branches CoverageTotal `json:"branches,omitempty"`
43
+ }
44
+
45
+ type CoverageFile struct {
46
+ Summary CoverageTotals `json:"summary,omitempty"`
47
+ Filename string `json:"filename,omitempty"`
48
+ }
49
+
50
+ type CoverageData struct {
51
+ Totals CoverageTotals `json:"totals,omitempty"`
52
+ Files []CoverageFile `json:"files,omitempty"`
53
+ }
54
+
55
+ type PositionInterval struct {
56
+ start token.Position
57
+ end token.Position
58
+ }
59
+
60
+ type CoverageSummary struct {
61
+ Data []CoverageData `json:"data,omitempty"`
62
+ Type string `json:"type,omitempty"`
63
+ Version string `json:"version,omitempty"`
64
+ }
65
+
66
+ func isFunctionCovered(s token.Position, e token.Position, blocks []cover.ProfileBlock) bool {
67
+ for _, b := range blocks {
68
+ if b.StartLine >= s.Line && b.StartLine <= e.Line && b.EndLine >= s.Line && b.EndLine <= e.Line {
69
+ if b.Count > 0 {
70
+ return true
71
+ }
72
+ }
73
+ }
74
+ return false
75
+ }
76
+
77
+ func computePercent(s *CoverageTotals) {
78
+ if s.Regions.Count > 0 {
79
+ s.Regions.Percent = float64(100*s.Regions.Covered) / float64(s.Regions.Count)
80
+ }
81
+ if s.Lines.Count > 0 {
82
+ s.Lines.Percent = float64(100*s.Lines.Covered) / float64(s.Lines.Count)
83
+ }
84
+ if s.Functions.Count > 0 {
85
+ s.Functions.Percent = float64(100*s.Functions.Covered) / float64(s.Functions.Count)
86
+ }
87
+ }
88
+
89
+ func main() {
90
+ flag.Parse()
91
+
92
+ if len(flag.Args()) != 1 {
93
+ log.Fatalf("needs exactly one argument")
94
+ }
95
+ profiles, err := cover.ParseProfiles(flag.Args()[0])
96
+ if err != nil {
97
+ log.Fatalf("failed to parse profiles: %v", err)
98
+ }
99
+ r := CoverageSummary{}
100
+ r.Type = "oss-fuzz.go.coverage.json.export"
101
+ r.Version = "2.0.1"
102
+ r.Data = make([]CoverageData, 1)
103
+ for _, p := range profiles {
104
+ fset := token.NewFileSet() // positions are relative to fset
105
+ f, err := parser.ParseFile(fset, p.FileName, nil, 0)
106
+ if err != nil {
107
+ log.Printf("failed to parse go file: %v", err)
108
+ continue
109
+ }
110
+ fileCov := CoverageFile{}
111
+ fileCov.Filename = p.FileName
112
+ ast.Inspect(f, func(n ast.Node) bool {
113
+ switch x := n.(type) {
114
+ case *ast.FuncLit:
115
+ startf := fset.Position(x.Pos())
116
+ endf := fset.Position(x.End())
117
+ fileCov.Summary.Functions.Count++
118
+ if isFunctionCovered(startf, endf, p.Blocks) {
119
+ fileCov.Summary.Functions.Covered++
120
+ } else {
121
+ fileCov.Summary.Functions.Uncovered++
122
+ }
123
+ case *ast.FuncDecl:
124
+ startf := fset.Position(x.Pos())
125
+ endf := fset.Position(x.End())
126
+ fileCov.Summary.Functions.Count++
127
+ if isFunctionCovered(startf, endf, p.Blocks) {
128
+ fileCov.Summary.Functions.Covered++
129
+ } else {
130
+ fileCov.Summary.Functions.Uncovered++
131
+ }
132
+ }
133
+ return true
134
+ })
135
+
136
+ for _, b := range p.Blocks {
137
+ fileCov.Summary.Regions.Count++
138
+ if b.Count > 0 {
139
+ fileCov.Summary.Regions.Covered++
140
+ } else {
141
+ fileCov.Summary.Regions.Uncovered++
142
+ }
143
+
144
+ fileCov.Summary.Lines.Count += b.NumStmt
145
+ if b.Count > 0 {
146
+ fileCov.Summary.Lines.Covered += b.NumStmt
147
+ } else {
148
+ fileCov.Summary.Lines.Uncovered += b.NumStmt
149
+ }
150
+ }
151
+ r.Data[0].Totals.Regions.Count += fileCov.Summary.Regions.Count
152
+ r.Data[0].Totals.Regions.Covered += fileCov.Summary.Regions.Covered
153
+ r.Data[0].Totals.Regions.Uncovered += fileCov.Summary.Regions.Uncovered
154
+ r.Data[0].Totals.Lines.Count += fileCov.Summary.Lines.Count
155
+ r.Data[0].Totals.Lines.Covered += fileCov.Summary.Lines.Covered
156
+ r.Data[0].Totals.Lines.Uncovered += fileCov.Summary.Lines.Uncovered
157
+ r.Data[0].Totals.Functions.Count += fileCov.Summary.Functions.Count
158
+ r.Data[0].Totals.Functions.Covered += fileCov.Summary.Functions.Covered
159
+ r.Data[0].Totals.Functions.Uncovered += fileCov.Summary.Functions.Uncovered
160
+
161
+ computePercent(&fileCov.Summary)
162
+ r.Data[0].Files = append(r.Data[0].Files, fileCov)
163
+ }
164
+
165
+ computePercent(&r.Data[0].Totals)
166
+ o, err := json.Marshal(r)
167
+ if err != nil {
168
+ log.Fatalf("failed to generate json: %v", err)
169
+ }
170
+ fmt.Printf(string(o))
171
+ }
local-test-commons-compress-full-01-vuln_5/fuzz-tooling/infra/base-images/base-runner/gocoverage/pprof-merge/LICENSE ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "{}"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright {yyyy} {name of copyright owner}
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
local-test-commons-compress-full-01-vuln_5/fuzz-tooling/infra/base-images/base-runner/gocoverage/pprof-merge/main.go ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Copyright 2019 Google Inc. All Rights Reserved.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ package main
16
+
17
+ import (
18
+ "flag"
19
+ "log"
20
+ "os"
21
+
22
+ "github.com/google/pprof/profile"
23
+ )
24
+
25
+ var (
26
+ output string
27
+ )
28
+
29
+ func main() {
30
+ flag.StringVar(&output, "o", "merged.data", "")
31
+ flag.Parse()
32
+
33
+ files := os.Args[1:]
34
+ if len(files) == 0 {
35
+ log.Fatal("Give profiles files as arguments")
36
+ }
37
+
38
+ var profiles []*profile.Profile
39
+ for _, fname := range files {
40
+ f, err := os.Open(fname)
41
+ if err != nil {
42
+ log.Fatalf("Cannot open profile file at %q: %v", fname, err)
43
+ }
44
+ p, err := profile.Parse(f)
45
+ if err != nil {
46
+ log.Fatalf("Cannot parse profile at %q: %v", fname, err)
47
+ }
48
+ profiles = append(profiles, p)
49
+ }
50
+
51
+ merged, err := profile.Merge(profiles)
52
+ if err != nil {
53
+ log.Fatalf("Cannot merge profiles: %v", err)
54
+ }
55
+
56
+ out, err := os.OpenFile(output, os.O_RDWR|os.O_CREATE, 0755)
57
+ if err != nil {
58
+ log.Fatalf("Cannot open output to write: %v", err)
59
+ }
60
+
61
+ if err := merged.Write(out); err != nil {
62
+ log.Fatalf("Cannot write merged profile to file: %v", err)
63
+ }
64
+
65
+ if err := out.Close(); err != nil {
66
+ log.Printf("Error when closing the output file: %v", err)
67
+ }
68
+ }