Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions projects/brotli/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2016 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 ossfuzz/base-libfuzzer
MAINTAINER eustas@chromium.org
RUN apt-get install -y cmake libtool make

RUN git clone --depth 1 https://github.com/google/brotli.git
WORKDIR brotli
COPY build.sh $SRC/
11 changes: 11 additions & 0 deletions projects/brotli/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash -eu

cmake . -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTING=OFF
make clean
make -j$(nproc) brotlidec

$CXX $CXXFLAGS -std=c++11 -I. \
fuzz/decode_fuzzer.cc -I./include -o $OUT/decode_fuzzer \
-lFuzzingEngine ./libbrotlidec.a ./libbrotlicommon.a

cp java/integration/fuzz_data.zip $OUT/decode_fuzzer_seed_corpus.zip
2 changes: 2 additions & 0 deletions projects/brotli/project.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
homepage: "https://github.com/google/brotli"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to add yourself in primary_contact field ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

primary_contact: "eustas@chromium.org"