Skip to content

Commit 3bee3af

Browse files
rouaultinferno-chromium
authored andcommitted
Add openjpeg to projects (#700)
From http://www.openjpeg.org/ : """ OpenJPEG is an open-source JPEG 2000 codec written in C language. It has been developed in order to promote the use of JPEG 2000, a still-image compression standard from the Joint Photographic Experts Group (JPEG). Since may 2015, it is officially recognized by ISO/IEC and ITU-T as a JPEG 2000 Reference Software """ I submit this integration of OpenJPEG into oss-fuzz on behalf of Antonin Descampes (@detonin), one of the project leaders. The OpenJPEG side of the integration has already been merged into openjpeg git master per uclouvain/openjpeg#965 / uclouvain/openjpeg@1a8eac6
1 parent b2d75a3 commit 3bee3af

File tree

3 files changed

+54
-0
lines changed

3 files changed

+54
-0
lines changed

projects/openjpeg/Dockerfile

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Copyright 2016 Google Inc.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
################################################################################
16+
17+
FROM gcr.io/oss-fuzz-base/base-builder
18+
MAINTAINER antonin@gmail.com
19+
RUN apt-get update && apt-get install -y make cmake g++
20+
RUN git clone --depth 1 https://github.com/uclouvain/openjpeg openjpeg
21+
# openjpeg-data is used to create a seed corpus
22+
RUN git clone --depth 1 https://github.com/uclouvain/openjpeg-data openjpeg/data
23+
WORKDIR openjpeg
24+
COPY build.sh $SRC/

projects/openjpeg/build.sh

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/bin/bash -eu
2+
# Copyright 2016 Google Inc.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
################################################################################
17+
18+
mkdir build
19+
cd build
20+
cmake ..
21+
make clean -s
22+
make -j$(nproc) -s
23+
cd ..
24+
25+
./tests/fuzzers/build_google_oss_fuzzers.sh
26+
./tests/fuzzers/build_seed_corpus.sh

projects/openjpeg/project.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
homepage: "http://www.openjpeg.org/"
2+
primary_contact: "antonin@gmail.com"
3+
auto_ccs:
4+
- "even.rouault@gmail.com"

0 commit comments

Comments
 (0)