mirror of https://github.com/google/oss-fuzz.git
* [infra] Add script for downloading a batch of corpus backups (for #1547). * Add missing wget dependency and replace a tab with spaces. * Convert more tabs to spaces.
This commit is contained in:
parent
79b521a629
commit
e1aa07c491
|
@ -17,9 +17,10 @@
|
|||
FROM gcr.io/oss-fuzz-base/base-image
|
||||
MAINTAINER mike.aizatsky@gmail.com
|
||||
RUN apt-get install -y zip file libunwind8 binutils libblocksruntime0 \
|
||||
fonts-dejavu python3 libcap2
|
||||
COPY bad_build_check coverage llvm-cov llvm-profdata llvm-symbolizer reproduce \
|
||||
run_fuzzer sancov test_all minijail0 run_minijail targets_list /usr/local/bin/
|
||||
fonts-dejavu python3 libcap2 wget
|
||||
COPY bad_build_check coverage download_corpus llvm-cov llvm-profdata \
|
||||
llvm-symbolizer reproduce run_fuzzer sancov test_all minijail0 \
|
||||
run_minijail targets_list /usr/local/bin/
|
||||
|
||||
# Default environment options for various sanitizers.
|
||||
# Note that these match the settings used in ClusterFuzz and
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
#!/bin/bash -u
|
||||
# Copyright 2018 Google Inc.
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
################################################################################
|
||||
|
||||
if (( $# < 1 )); then
|
||||
echo "Usage: $0 \"path_download_to url_download_from\" (can be repeated)" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
for pair in "$@"; do
|
||||
read path url <<< "$pair"
|
||||
wget -q -O $path $url
|
||||
done
|
Loading…
Reference in New Issue