Skip to content

Commit ced4fb9

Browse files
committed
.clusterfuzzlite: clean up build.sh
1 parent 060aad1 commit ced4fb9

File tree

2 files changed

+2
-31
lines changed

2 files changed

+2
-31
lines changed

.clusterfuzzlite/Dockerfile

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
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-
171
FROM gcr.io/oss-fuzz-base/base-builder
182

193
RUN apt-get update && apt-get install -y python3-pip ninja-build

.clusterfuzzlite/build.sh

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
11
#!/bin/bash -eu
22

3-
# Install additional dependencies if needed (ClusterFuzzLite base has most, but ensure)
4-
apt-get update && apt-get install -y meson ninja-build python3 clang llvm
5-
6-
# Do NOT override CFLAGS/CXXFLAGS/LDFLAGS here, as ClusterFuzzLite already sets appropriate flags
7-
# like -fsanitize=address,undefined,fuzzer-no-link for compilation.
8-
# Overriding causes conflicts (e.g., duplicate/mismatched sanitizer flags) that break Meson's compiler check.
9-
10-
# Set CC and CXX to clang if not already (ClusterFuzzLite usually does this)
11-
export CC="${CC:-clang}"
12-
export CXX="${CXX:-clang++}"
13-
143
# Build dependencies if not subprojects (assuming wrap files handle them)
154
cd $SRC/libcss
165
meson subprojects update || true # If using subprojects/wraps for libwapcaplet, libparserutils
@@ -36,7 +25,5 @@ cp build/css_parse_fuzzer $OUT/
3625
# Optional: Build seed corpus (zip test data or examples)
3726
mkdir -p css_parse_fuzzer_seed_corpus
3827
# Add some seed files, e.g., from test data
39-
cp -r test/data/* css_parse_fuzzer_seed_corpus/ || true # Adjust path to your test CSS files
40-
zip -r $OUT/css_parse_fuzzer_seed_corpus.zip css_parse_fuzzer_seed_corpus || true
41-
42-
# If you have multiple fuzzers, repeat cp and seed steps
28+
cp -r test/data/css/* css_parse_fuzzer_seed_corpus/ || true # Adjust path to your test CSS files
29+
zip -r $OUT/css_parse_fuzzer_seed_corpus.zip css_parse_fuzzer_seed_corpus || true

0 commit comments

Comments
 (0)