kamailio: updated build script for new fuzzer. (#6387)

This commit is contained in:
DavidKorczynski 2021-09-02 19:13:55 +01:00 committed by GitHub
parent fafaf03d27
commit 4431a34a65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -22,7 +22,8 @@ export LD_EXTRA_OPTS="${CFLAGS}"
sed -i 's/int main(/int main2(/g' ./src/main.c
make || true
export MEMPKG=sys
make Q=verbose || true
cd src
mkdir objects && find . -name "*.o" -exec cp {} ./objects/ \;
ar -r libkamilio.a ./objects/*.o
@ -30,3 +31,7 @@ cd ../
$CC $CFLAGS $LIB_FUZZING_ENGINE ./misc/fuzz/fuzz_uri.c -o $OUT/fuzz_uri \
-DFAST_LOCK -D__CPU_i386 ./src/libkamilio.a \
-I./src/ -I./src/core/parser -ldl -lresolv -lm
$CC $CFLAGS $LIB_FUZZING_ENGINE ./misc/fuzz/fuzz_parse_msg.c -o $OUT/fuzz_parse_msg \
-DFAST_LOCK -D__CPU_i386 ./src/libkamilio.a \
-I./src/ -I./src/core/parser -ldl -lresolv -lm