1#!/bin/bash -eu 2# 3# Copyright 2016 Google Inc. 4# 5# Licensed under the Apache License, Version 2.0 (the "License"); 6# you may not use this file except in compliance with the License. 7# You may obtain a copy of the License at 8# 9# http://www.apache.org/licenses/LICENSE-2.0 10# 11# Unless required by applicable law or agreed to in writing, software 12# distributed under the License is distributed on an "AS IS" BASIS, 13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14# See the License for the specific language governing permissions and 15# limitations under the License. 16# 17################################################################################ 18 19./autogen.sh --without-cython --enable-debug 20make -j$(nproc) clean 21make -j$(nproc) all 22 23for fuzzer in bplist_fuzzer xplist_fuzzer; do 24 $CXX $CXXFLAGS -std=c++11 -Iinclude/ \ 25 fuzz/$fuzzer.cc -o $OUT/$fuzzer \ 26 $LIB_FUZZING_ENGINE src/.libs/libplist-2.0.a 27done 28 29zip -j $OUT/bplist_fuzzer_seed_corpus.zip test/data/*.bplist 30zip -j $OUT/xplist_fuzzer_seed_corpus.zip test/data/*.plist 31 32cp fuzz/*.dict fuzz/*.options $OUT/ 33