Signed-off-by: David Korczynski <david@adalogics.com>
This commit is contained in:
David Korczynski 2024-05-10 16:33:10 -07:00
parent b691ff34ff
commit 792bacb2c7
2 changed files with 4 additions and 6 deletions

View File

@ -1,8 +1,6 @@
FROM gcr.io/oss-fuzz-base/base-builder FROM gcr.io/oss-fuzz-base/base-builder
RUN apt-get update && apt-get install -y make autoconf automake libtool cmake \ RUN apt-get update && apt-get install -y make autoconf automake libtool
pkg-config curl check
COPY . $SRC/tiny-json COPY . $SRC/tiny-json
COPY .clusterfuzzlite/build.sh $SRC/build.sh COPY .clusterfuzzlite/build.sh $SRC/build.sh
COPY .clusterfuzzlite/*.cpp $SRC/
COPY .clusterfuzzlite/*.c $SRC/ COPY .clusterfuzzlite/*.c $SRC/
WORKDIR tiny-json WORKDIR tiny-json

View File

@ -1,8 +1,8 @@
#!/bin/bash #!/bin/bash
find . -name "*.c" -exec $CC $CFLAGS -I./src -c {} \; for file in "tiny-json.c"; do
find . -name "*.o" -exec cp {} . \; $CC $CFLAGS -c ${file}
done
rm -f ./test*.o
llvm-ar rcs libfuzz.a *.o llvm-ar rcs libfuzz.a *.o