Skip to content

Commit d1c80ad

Browse files
oss-fuzz: fix patch (#2139)
Fixes: #2138 Signed-off-by: David Korczynski <[email protected]>
1 parent beddbb7 commit d1c80ad

File tree

1 file changed

+9
-40
lines changed

1 file changed

+9
-40
lines changed
Lines changed: 9 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/infra/base-images/base-builder/Dockerfile b/infra/base-images/base-builder/Dockerfile
2-
index 64d11095b..34bee0c13 100644
2+
index 62c47b9b7..5e6570a5a 100644
33
--- a/infra/base-images/base-builder/Dockerfile
44
+++ b/infra/base-images/base-builder/Dockerfile
55
@@ -193,6 +193,16 @@ COPY llvmsymbol.diff $SRC
@@ -20,19 +20,20 @@ index 64d11095b..34bee0c13 100644
2020
# /ccache/bin will contain the compiler wrappers, and /ccache/cache will
2121
# contain the actual cache, which can be saved.
2222
diff --git a/infra/base-images/base-clang/Dockerfile b/infra/base-images/base-clang/Dockerfile
23-
index 296b1f7fb..9c6b1ff55 100644
23+
index f8ac7df0d..b6edcfc75 100644
2424
--- a/infra/base-images/base-clang/Dockerfile
2525
+++ b/infra/base-images/base-clang/Dockerfile
26-
@@ -45,6 +45,9 @@ RUN apt-get update && apt-get install -y git && \
26+
@@ -43,6 +43,10 @@ RUN apt-get update && apt-get install -y git && \
27+
rm -rf .git
28+
2729
COPY checkout_build_install_llvm.sh /root/
28-
# Keep all steps in the same script to decrease the number of intermediate
29-
# layes in docker file.
30+
+
3031
+RUN rm -rf /fuzz-introspector
3132
+COPY fuzz-introspector fuzz-introspector
3233
+
33-
RUN /root/checkout_build_install_llvm.sh
34-
RUN rm /root/checkout_build_install_llvm.sh
35-
34+
# Keep all steps in the same script to decrease the number of intermediate
35+
# layes in docker file.
36+
ARG FULL_LLVM_BUILD
3637
diff --git a/infra/base-images/base-runner/coverage b/infra/base-images/base-runner/coverage
3738
index 585b4d457..014bdbce6 100755
3839
--- a/infra/base-images/base-runner/coverage
@@ -64,35 +65,3 @@ index 585b4d457..014bdbce6 100755
6465
$SYSGOPATH/bin/gocovsum fuzz.cov > $SUMMARY_FILE
6566
cp $REPORT_ROOT_DIR/index.html $REPORT_PLATFORM_DIR/index.html
6667
$SYSGOPATH/bin/pprof-merge $DUMPS_DIR/*.perf.cpu.prof
67-
diff --git a/projects/cjson/build.sh b/projects/cjson/build.sh
68-
index 7d6cea020..fd92b97c5 100644
69-
--- a/projects/cjson/build.sh
70-
+++ b/projects/cjson/build.sh
71-
@@ -14,5 +14,10 @@
72-
# limitations under the License.
73-
#
74-
################################################################################
75-
+
76-
+if [[ "$SANITIZER" == introspector ]]; then
77-
+ exit 1
78-
+fi
79-
+
80-
# Run the OSS-Fuzz script in the project
81-
-$SRC/cjson/fuzzing/ossfuzz.sh
82-
\ No newline at end of file
83-
+$SRC/cjson/fuzzing/ossfuzz.sh
84-
diff --git a/projects/htslib/build.sh b/projects/htslib/build.sh
85-
index a0bbdfd69..8580e7895 100755
86-
--- a/projects/htslib/build.sh
87-
+++ b/projects/htslib/build.sh
88-
@@ -14,7 +14,9 @@
89-
# limitations under the License.
90-
#
91-
################################################################################
92-
-
93-
+if [[ "$SANITIZER" == introspector ]]; then
94-
+ exit 1
95-
+fi
96-
# build project
97-
autoconf
98-
autoheader

0 commit comments

Comments
 (0)