CodeIntelligenceTesting / jazzer

Coverage-guided, in-process fuzzing for the JVM
https://code-intelligence.com
Apache License 2.0
985 stars 132 forks source link

https://github.com/CodeIntelligenceTesting/jazzer/tree/main/examples/junit not compling #714

Open nagkumar opened 1 year ago

nagkumar commented 1 year ago
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) on project jazzer-junit-example: Compilation failure: Compilation failure:
[ERROR] /C:/temp/jazzer/examples/junit/src/test/java/com/example/MutatorFuzzTest.java:[42,34] cannot find symbol
[ERROR]   symbol:   method invalidCorpusFilesPresent()
[ERROR]   location: class com.code_intelligence.jazzer.driver.FuzzTargetRunner
[ERROR] /C:/temp/jazzer/examples/junit/src/test/java/com/example/MutatorFuzzTest.java:[43,36] cannot find symbol
[ERROR]   symbol:   method mutatorDebugString()
[ERROR]   location: class com.code_intelligence.jazzer.driver.FuzzTargetRunner
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

image

nagkumar commented 1 year ago

something wrong with https://repo1.maven.org/maven2/com/code-intelligence/jazzer/0.16.1/jazzer-0.16.1.jar

image jazzer-0.16.1.jar as dates are 1985

nagkumar commented 1 year ago

image image

these are the changed versions that are not reflected in 0.16.1

nagkumar commented 1 year ago

Both changes are done in on 3rd and 4th Aprill after 0.161 uploaded that is 30th March 2023

image

Time to release the new version of jazzer-0.16.x.jar

fmeum commented 1 year ago

Some of the examples turned into internal tests, sorry for that. Please see https://github.com/CodeIntelligenceTesting/jazzer/tree/main/examples/junit-spring-web for an actual example - we will move the other tests to prevent confusion in the future.

The modification times of entries in Jazzer's release JARs are set to hardcoded values for reproducibility - this is working as intended.