mirror of https://github.com/google/oss-fuzz.git
Added libregf integration (#4126)
This commit is contained in:
parent
9c16aecf48
commit
9376cc2165
|
@ -0,0 +1,23 @@
|
||||||
|
# Copyright 2020 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.
|
||||||
|
#
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
FROM gcr.io/oss-fuzz-base/base-builder
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y make autoconf automake autopoint libtool pkg-config
|
||||||
|
|
||||||
|
RUN git clone --depth 1 https://github.com/libyal/libregf.git libregf
|
||||||
|
WORKDIR libregf
|
||||||
|
COPY build.sh $SRC/
|
|
@ -0,0 +1,29 @@
|
||||||
|
#!/bin/bash -eu
|
||||||
|
# Copyright 2020 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.
|
||||||
|
#
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
# Prepare the project source for build.
|
||||||
|
./synclibs.sh
|
||||||
|
./synctestdata.sh
|
||||||
|
./autogen.sh
|
||||||
|
./configure --enable-shared=no
|
||||||
|
|
||||||
|
# Build the project and fuzzer binaries.
|
||||||
|
make -j$(nproc) LIB_FUZZING_ENGINE=${LIB_FUZZING_ENGINE}
|
||||||
|
|
||||||
|
# Copy the fuzzer binaries and test data to the output directory.
|
||||||
|
find ossfuzz -executable -type f -exec cp {} ${OUT} \;
|
||||||
|
(cd tests/input/public/ && zip ${OUT}/file_fuzzer_seed_corpus.zip *)
|
|
@ -0,0 +1,10 @@
|
||||||
|
homepage: "https://github.com/libyal/libregf"
|
||||||
|
language: c
|
||||||
|
primary_contact: "joachim.metz@gmail.com"
|
||||||
|
sanitizers:
|
||||||
|
- address
|
||||||
|
- memory
|
||||||
|
- undefined
|
||||||
|
architectures:
|
||||||
|
- x86_64
|
||||||
|
- i386
|
Loading…
Reference in New Issue