Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unirest-java: Fix build #13035

Merged
merged 1 commit into from
Feb 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion projects/unirest-java/JacksonEngineFuzzer.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import com.code_intelligence.jazzer.api.FuzzedDataProvider;
import kong.unirest.core.json.JsonEngine;
import kong.unirest.core.json.JSONException;
import kong.unirest.jackson.JacksonEngine;
import kong.unirest.modules.jackson.JacksonEngine;

// Generated with https://github.com/ossf/fuzz-introspector/tree/main/tools/auto-fuzz
// Minor modifications to beautify code and ensure exception is caught.
Expand Down
6 changes: 3 additions & 3 deletions projects/unirest-java/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ $MVN clean package -Dmaven.javadoc.skip=true -DskipTests=true -Dpmd.skip=true \
CURRENT_VERSION=$($MVN org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate \
-Dexpression=project.version -q -DforceStdout)

cp "object-mapper-jackson/target/unirest-objectmapper-jackson-$CURRENT_VERSION.jar" $OUT/jackson.jar
cp "object-mapper-gson/target/unirest-object-mappers-gson-$CURRENT_VERSION.jar" $OUT/gson.jar
cp "unirest-modules-jackson/target/unirest-modules-jackson-$CURRENT_VERSION.jar" $OUT/jackson.jar
cp "unirest-modules-gson/target/unirest-modules-gson-$CURRENT_VERSION.jar" $OUT/gson.jar
cp "unirest/target/unirest-java-core-$CURRENT_VERSION.jar" $OUT/unirest.jar

ALL_JARS="jackson.jar gson.jar unirest.jar"
Expand All @@ -33,7 +33,7 @@ BUILD_CLASSPATH=$(echo $ALL_JARS | xargs printf -- "$OUT/%s:"):$JAZZER_API_PATH
# All .jar and .class files lie in the same directory as the fuzzer at runtime.
RUNTIME_CLASSPATH=$(echo $ALL_JARS | xargs printf -- "\$this_dir/%s:"):\$this_dir

for fuzzer in $(find $SRC -name '*Fuzzer.java')
for fuzzer in $(find $SRC -maxdepth 1 -name '*Fuzzer.java')
do
fuzzer_basename=$(basename -s .java $fuzzer)
javac -cp $BUILD_CLASSPATH $fuzzer
Expand Down
Loading