From fadf6ee1f21914d5d51a89d153004138d7572706 Mon Sep 17 00:00:00 2001 From: Catena cyber <35799796+catenacyber@users.noreply.github.com> Date: Sat, 25 Feb 2023 10:27:04 +0100 Subject: [PATCH] Adds project glog (#9160) @sergiud are you interested in having glog running on oss-fuzz ? see also https://github.com/google/glog/issues/816 cc @autofuzzoss I also quickly find a timeout with input `_ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ_` --- projects/glog/Dockerfile | 22 ++++++++++++++++++++++ projects/glog/build.sh | 22 ++++++++++++++++++++++ projects/glog/project.yaml | 7 +++++++ 3 files changed, 51 insertions(+) create mode 100644 projects/glog/Dockerfile create mode 100755 projects/glog/build.sh create mode 100644 projects/glog/project.yaml diff --git a/projects/glog/Dockerfile b/projects/glog/Dockerfile new file mode 100644 index 000000000000..44353f2ecf09 --- /dev/null +++ b/projects/glog/Dockerfile @@ -0,0 +1,22 @@ +# Copyright 2021 Google LLC +# +# 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 gcr.io/oss-fuzz-base/base-builder + +RUN git clone --depth 1 https://github.com/google/glog + +COPY build.sh $SRC/ +WORKDIR $SRC/glog diff --git a/projects/glog/build.sh b/projects/glog/build.sh new file mode 100755 index 000000000000..d385b0a473f4 --- /dev/null +++ b/projects/glog/build.sh @@ -0,0 +1,22 @@ +#!/bin/bash -eu +# Copyright 2021 Google LLC +# +# 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. +# +################################################################################ + +mkdir build +cd build +cmake .. -DWITH_FUZZING=ossfuzz -DBUILD_SHARED_LIBS=OFF +make -j$(nproc) +cp fuzz_* $OUT/ diff --git a/projects/glog/project.yaml b/projects/glog/project.yaml new file mode 100644 index 000000000000..00ef2b7a414b --- /dev/null +++ b/projects/glog/project.yaml @@ -0,0 +1,7 @@ +homepage: "https://github.com/google/glog" +language: c++ +primary_contact: "sergiu.deitsch@gmail.com" +auto_ccs : +- "p.antoine@catenacyber.fr" + +main_repo: 'https://github.com/google/glog'