Skip to content

Error: javafuzz-maven-plugin:1.24:fuzz failed: Index -116 out of bounds for length 148

When trying to use the FuzzImage target in javafuzz-fuzzing-example, the fuzzer works for a while and then crashes with the following output

#330462 PULSE cov: 21899 corp: 293 exec/s: 2000 rss: 12 MB
#339499 PULSE cov: 21899 corp: 293 exec/s: 3000 rss: 29 MB
#348676 PULSE cov: 21899 corp: 293 exec/s: 3000 rss: 34 MB
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:11 min
[INFO] Finished at: 2023-06-21T17:30:11Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.gitlab.javafuzz:javafuzz-maven-plugin:1.24:fuzz (default-cli) on project examples: Execution default-cli of goal com.gitlab.javafuzz:javafuzz-maven-plugin:1.24:fuzz failed: Index -116 out of bounds for length 148 -> [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/PluginExecutionException