Skip to content

Commit 322c9bf

Browse files
capuanobvitorguidi
andauthored
Jpegoptim: Updated Dockerfile for Initial Integration (#13101)
This pull requests integrates the Dockerfile needed to build the fuzzers for jpegoptim, as merged into upstream [here](tjko/jpegoptim#190) --------- Co-authored-by: Vitor Guidi <[email protected]>
1 parent 5b2ceed commit 322c9bf

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

projects/jpegoptim/Dockerfile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copyright 2025 Google LLC
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+
ENV DEBIAN_FRONTEND=noninteractive
19+
ENV ASAN_OPTIONS=detect_leaks=0
20+
RUN apt update && apt install -y cmake make
21+
RUN git clone --depth 1 https://github.com/tjko/jpegoptim.git jpegoptim \
22+
&& cp jpegoptim/fuzz/build.sh $SRC/
23+
RUN for script in jpegoptim/fuzz/libjpeg_builders/*.sh; do \
24+
bash "$script"; \
25+
done
26+
WORKDIR jpegoptim

projects/jpegoptim/project.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ primary_contact: "[email protected]"
44
auto_ccs:
55
66
main_repo: "https://github.com/tjko/jpegoptim.git"
7+
fuzzing_engines:
8+
- libfuzzer
9+
- afl
10+
- honggfuzz

0 commit comments

Comments
 (0)