From 6a7a12d80875adb7f8314be3e79d3cd412420dec Mon Sep 17 00:00:00 2001 From: ennamarie19 <89044704+ennamarie19@users.noreply.github.com> Date: Wed, 15 Nov 2023 17:46:12 -0700 Subject: [PATCH] dateparser Harness Migration (#11226) This PR holds the Dockerfile and project.yaml for dateparser. [Upstream](https://github.com/scrapinghub/dateparser/pull/1198) has merged the fuzz harness and supplemental files. --------- Co-authored-by: jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com> Co-authored-by: bcapuano --- projects/dateparser/Dockerfile | 23 +++++++++++++++++++++++ projects/dateparser/project.yaml | 1 - 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 projects/dateparser/Dockerfile diff --git a/projects/dateparser/Dockerfile b/projects/dateparser/Dockerfile new file mode 100644 index 000000000000..e05e4ac12e3f --- /dev/null +++ b/projects/dateparser/Dockerfile @@ -0,0 +1,23 @@ +# Copyright 2023 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-python +RUN pip3 install --upgrade pip +RUN git clone --depth 1 https://github.com/scrapinghub/dateparser.git dateparser \ + && cp dateparser/fuzzing/build.sh $SRC/ \ + && mv dateparser/fuzzing/corpus $SRC/ +WORKDIR $SRC/dateparser + diff --git a/projects/dateparser/project.yaml b/projects/dateparser/project.yaml index 6dd32b9a49a7..6b773bf6da65 100644 --- a/projects/dateparser/project.yaml +++ b/projects/dateparser/project.yaml @@ -7,5 +7,4 @@ fuzzing_engines: - libfuzzer sanitizers: - address - - undefined main_repo: "https://github.com/scrapinghub/dateparser.git"