2017-10-09 23:17:21 +00:00
|
|
|
#!/bin/bash -eux
|
|
|
|
# Copyright 2017 The Chromium Authors. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
#
|
|
|
|
# Builds fuzzers from within a container into /out/ directory.
|
|
|
|
# Expects /src/cras to contain a cras checkout.
|
|
|
|
|
|
|
|
cd ${SRC}/adhd/cras
|
|
|
|
./git_prepare.sh
|
2018-07-03 04:06:10 +00:00
|
|
|
./configure --disable-dbus --disable-webrtc-apm
|
2017-10-09 23:17:21 +00:00
|
|
|
make -j$(nproc)
|
|
|
|
|
|
|
|
$CXX $CXXFLAGS $FUZZER_LDFLAGS \
|
|
|
|
${SRC}/adhd/cras/src/fuzz/rclient_message.cc -o ${OUT}/rclient_message \
|
|
|
|
-I ${SRC}/adhd/cras/src/server \
|
|
|
|
-I ${SRC}/adhd/cras/src/common \
|
|
|
|
${SRC}/adhd/cras/src/.libs/libcrasserver.a \
|
|
|
|
-lpthread -lrt -ludev -ldl -lm \
|
2019-05-01 15:09:55 +00:00
|
|
|
$LIB_FUZZING_ENGINE \
|
2017-10-09 23:17:21 +00:00
|
|
|
-Wl,-Bstatic -liniparser -lasound -lspeexdsp -Wl,-Bdynamic
|
2017-10-10 14:58:50 +00:00
|
|
|
zip -j ${OUT}/rclient_message_corpus.zip ${SRC}/adhd/cras/src/fuzz/corpus/*
|