WIP #1753
Annotations
2 errors
task ':fuzzing:spotlessJavaCheck'#L1
Execution failed for task ':fuzzing:spotlessJavaCheck':
The following files had format violations:
src/main/java/fuzzing/RekorVerifierFuzzer.java
@@ -21,12 +21,9 @@
import·dev.sigstore.rekor.client.RekorResponse;
import·dev.sigstore.rekor.client.RekorVerificationException;
import·dev.sigstore.rekor.client.RekorVerifier;
-import·java.io.IOException;
import·java.net.URI;
import·java.net.URISyntaxException;
import·java.nio.charset.StandardCharsets;
-import·java.security.NoSuchAlgorithmException;
-import·java.security.spec.InvalidKeySpecException;
import·util.Tuf;
public·class·RekorVerifierFuzzer·{
@@ -44,9 +41,7 @@
······verifier.verifyEntry(entry);
······verifier.verifyInclusionProof(entry);
-····}·catch·(URISyntaxException
-········|·RekorParseException
-········|·RekorVerificationException·e)·{
+····}·catch·(URISyntaxException·|·RekorParseException·|·RekorVerificationException·e)·{
······//·Known·exception
····}
··}
src/main/java/util/Tuf.java
@@ -1,3 +1,18 @@
+/*
+·*·Copyright·2023·The·Sigstore·Authors.
+·*
+·*·Licensed·under·the·Apache·License,·Version·2.0·(the·"License");
+·*·you·may·not·use·this·file·except·in·compliance·with·the·License.
+·*·You·may·obtain·a·copy·of·the·License·at
+·*
+·*·····http://www.apache.org/licenses/LICENSE-2.0
+·*
+·*·Unless·required·by·applicable·law·or·agreed·to·in·writing,·software
+·*·distributed·under·the·License·is·distributed·on·an·"AS·IS"·BASIS,
+·*·WITHOUT·WARRANTIES·OR·CONDITIONS·OF·ANY·KIND,·either·express·or·implied.
+·*·See·the·License·for·the·specific·language·governing·permissions·and
+·*·limitations·under·the·License.
+·*/
package·util;
import·com.code_intelligence.jazzer.api.FuzzedDataProvider;
@@ -44,8 +59,10 @@
··private·static·CertPath·genCertPath(FuzzedDataProvider·data)·throws·CertificateException·{
····List<Certificate>·certList·=·new·ArrayList<Certificate>();
····CertificateFactory·cf·=·CertificateFactory.getInstance("X.509");
-····certList.add(cf.generateCertificate(new·ByteArrayInputStream(data.consumeBytes(MAX_CERT_SIZE))));
... (26 more lines that didn't fit)
Run './gradlew :fuzzing:spotlessApply' to fix these violations.
at com.diffplug.gradle.spotless.SpotlessCheck.performAction(SpotlessCheck.java:111)
at com.diffplug.gradle.spotless.SpotlessCheck.performAction(SpotlessCheck.java:53)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:125)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:58)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:51)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:29)
at org.gradle.api.internal.tasks.execution.TaskExecution$3.run(TaskExecution.java:236)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execut
|
|
The logs for this run have expired and are no longer available.
Loading