aboutsummaryrefslogtreecommitdiffhomepage
path: root/projects/libucl
diff options
context:
space:
mode:
authorGravatar DavidKorczynski <david@adalogics.com>2021-02-10 17:06:50 +0000
committerGravatar GitHub <noreply@github.com>2021-02-10 09:06:50 -0800
commit6df4f841ecf7589d488e5b59bcdf29c458c9a32d (patch)
tree0ca78af90aa7f496e7027ac7ffea718fc32c18b1 /projects/libucl
parentaeb6f092e6bc390caaced93151ad4eccdeaeb2a0 (diff)
libucl: enable afl and clean up project.yaml (#5156)
* libucl: enable afl. * Fixed hiredis build. * libucl: add options file. * should fix memory libucl. * Fixed libucl build.
Diffstat (limited to 'projects/libucl')
-rw-r--r--projects/libucl/Dockerfile3
-rw-r--r--projects/libucl/build.sh8
-rw-r--r--projects/libucl/project.yaml3
-rw-r--r--projects/libucl/ucl_add_string_fuzzer.options2
4 files changed, 9 insertions, 7 deletions
diff --git a/projects/libucl/Dockerfile b/projects/libucl/Dockerfile
index 0babaa2c..7824ad6b 100644
--- a/projects/libucl/Dockerfile
+++ b/projects/libucl/Dockerfile
@@ -1,4 +1,4 @@
-# Copyright 2020 Google Inc.
+# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -21,3 +21,4 @@ RUN git clone https://github.com/vstakhov/libucl
WORKDIR $SRC
COPY build.sh $SRC/
+COPY ucl_add_string_fuzzer.options $SRC/ucl_add_string_fuzzer.options
diff --git a/projects/libucl/build.sh b/projects/libucl/build.sh
index d5cce418..e5589dd4 100644
--- a/projects/libucl/build.sh
+++ b/projects/libucl/build.sh
@@ -1,4 +1,4 @@
-# Copyright 2020 Google Inc.
+# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -14,10 +14,12 @@
#
################################################################################
-export ASAN_OPTIONS=detect_leaks=0
+cp $SRC/ucl_add_string_fuzzer.options $OUT/
cd libucl
./autogen.sh && ./configure
make
-$CC tests/fuzzers/ucl_add_string_fuzzer.c -DHAVE_CONFIG_H -I./src -I./include src/.libs/libucl.a -I./ $CFLAGS $LIB_FUZZING_ENGINE -o $OUT/ucl_add_string_fuzzer
+$CC $CFLAGS $LIB_FUZZING_ENGINE tests/fuzzers/ucl_add_string_fuzzer.c \
+ -DHAVE_CONFIG_H -I./src -I./include src/.libs/libucl.a -I./ \
+ -o $OUT/ucl_add_string_fuzzer
diff --git a/projects/libucl/project.yaml b/projects/libucl/project.yaml
index 14bead56..8a5dd202 100644
--- a/projects/libucl/project.yaml
+++ b/projects/libucl/project.yaml
@@ -3,7 +3,4 @@ primary_contact: "vsevolod@highsecure.ru"
auto_ccs:
- "adam@adalogics.com"
language: c
-fuzzing_engines:
- - libfuzzer
- - honggfuzz
main_repo: 'https://github.com/vstakhov/libucl'
diff --git a/projects/libucl/ucl_add_string_fuzzer.options b/projects/libucl/ucl_add_string_fuzzer.options
new file mode 100644
index 00000000..f9d09656
--- /dev/null
+++ b/projects/libucl/ucl_add_string_fuzzer.options
@@ -0,0 +1,2 @@
+[libfuzzer]
+detect_leaks=0