From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp3.mail.ru (smtp3.mail.ru [94.100.179.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 65E1145C30A for ; Mon, 30 Nov 2020 23:25:43 +0300 (MSK) From: sergeyb@tarantool.org Date: Mon, 30 Nov 2020 23:24:52 +0300 Message-Id: In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 4/4] test: integrate with OSS Fuzz List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tarantool-patches@dev.tarantool.org, imun@tarantool.org, sergepetrenko@tarantool.org From: Sergey Bronnikov To run Tarantool fuzzers on OSS Fuzz infrastructure it is needed to pass library $LIB_FUZZING_ENGINE to linker and use external CFLAGS and CXXFLAGS. Full description how to integrate with OSS Fuzz is in [1] and [2]. Patch to OSS Fuzz repository [2] is ready to merge. 1. https://google.github.io/oss-fuzz/getting-started/new-project-guide/ 2. https://google.github.io/oss-fuzz/advanced-topics/ideal-integration/ 3. https://github.com/google/oss-fuzz/pull/4723 Closes #1809 --- test/fuzz/CMakeLists.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/fuzz/CMakeLists.txt b/test/fuzz/CMakeLists.txt index 142d38f67..3abedbf08 100644 --- a/test/fuzz/CMakeLists.txt +++ b/test/fuzz/CMakeLists.txt @@ -14,6 +14,13 @@ target_compile_options( $<$: -fsanitize=fuzzer,undefined > + $<$>: + -fsanitize=fuzzer + > + $<$: + ${CXX} + ${CXXFLAGS} + > ) target_link_libraries( fuzzer_config @@ -24,6 +31,12 @@ target_link_libraries( $<$: -fsanitize=fuzzer,undefined > + $<$>: + -fsanitize=fuzzer + > + $<$: + $ENV{LIB_FUZZING_ENGINE} + > ) # Use PUBLIC to force 'fuzzer_config' for all dependent targets. -- 2.25.1