From 0f558ce6e4bf7b8249a732e0726aef944c0cadef Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Tue, 27 Dec 2016 22:52:46 -0800 Subject: [PATCH] the actual Dockerfile/build.sh for llvm_libcxxabi (#221) --- projects/llvm_libcxxabi/Dockerfile | 23 +++++++++++++++++++++++ projects/llvm_libcxxabi/build.sh | 19 +++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 projects/llvm_libcxxabi/Dockerfile create mode 100644 projects/llvm_libcxxabi/build.sh diff --git a/projects/llvm_libcxxabi/Dockerfile b/projects/llvm_libcxxabi/Dockerfile new file mode 100644 index 000000000..675138609 --- /dev/null +++ b/projects/llvm_libcxxabi/Dockerfile @@ -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 kcc@google.com +RUN apt-get install -y subversion + +RUN svn co http://llvm.org/svn/llvm-project/libcxxabi/trunk libcxxabi +WORKDIR libcxxabi +COPY build.sh $SRC/ diff --git a/projects/llvm_libcxxabi/build.sh b/projects/llvm_libcxxabi/build.sh new file mode 100644 index 000000000..e8fbabe27 --- /dev/null +++ b/projects/llvm_libcxxabi/build.sh @@ -0,0 +1,19 @@ +#!/bin/bash -eux +# +# 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. +# +################################################################################ +$CXX $CXXFLAGS -std=c++11 -g src/cxa_demangle.cpp -Iinclude fuzz/cxa_demangle_fuzzer.cpp \ + -o $OUT/cxa_demangle_fuzzer -lFuzzingEngine