2022-06-02 15:59:18 +00:00
|
|
|
#!/bin/bash -eu
|
|
|
|
# Copyright 2022 Google LLC.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2022-08-05 20:52:39 +00:00
|
|
|
python3 ./setup.py install
|
2022-06-02 15:59:18 +00:00
|
|
|
|
|
|
|
cd $SRC
|
2022-06-07 09:54:40 +00:00
|
|
|
|
|
|
|
# Build parse and task fuzzers
|
|
|
|
compile_python_fuzzer fuzz_parse.py --add-data ansible/lib/ansible/config:ansible/config
|
|
|
|
compile_python_fuzzer fuzz_task.py --add-data ansible/lib/ansible/config:ansible/config
|
|
|
|
|
|
|
|
# Build fuzz_encrypt with a specific wrapper only in non-coverage
|
|
|
|
if [ "$SANITIZER" != "coverage" ]; then
|
|
|
|
compile_python_fuzzer fuzz_encrypt.py --add-data ansible/lib/ansible/config:ansible/config
|
|
|
|
cp $SRC/fuzz_encrypt.sh $OUT/fuzz_encrypt
|
|
|
|
chmod +x $OUT/fuzz_encrypt
|
|
|
|
fi
|
2022-06-10 10:12:58 +00:00
|
|
|
|
|
|
|
cp /usr/lib/x86_64-linux-gnu/libcrypt.so.1.1.0 $OUT/libcrypt.so
|