Skip to content

Commit

Permalink
Add dynamic libs to oss-fuzz image
Browse files Browse the repository at this point in the history
  • Loading branch information
nathaniel-brough committed Apr 24, 2023
1 parent bf447ba commit 620d30d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/fuzz/oss-fuzz-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,13 @@ conan install . --build=missing --update -s build_type=Release -o curaengine:ena
cmake --preset release -DWITH_TEST_FUZZ=ON
cmake --build --preset release -j$(nproc)

cp build/Release/tests/fuzz/Fuzz* $OUT
cp build/Release/tests/fuzz/Fuzz* $OUT

mkdir -p $OUT/lib
# Move all dynamic deps into output directory.
find ~/.conan/data -name '*.so*' -exec cp {} $OUT/lib/ \;

# Rewrite dynamic linker paths to point to output directory
for fuzzer in $OUT/Fuzz*; do
chrpath -r '$ORIGIN/lib' $fuzzer
done

0 comments on commit 620d30d

Please sign in to comment.