From cd700ebd69b19843908bdd04214f9dd4082aca6e Mon Sep 17 00:00:00 2001 From: Adnan Keskin <36092870+adoxalim@users.noreply.github.com> Date: Tue, 5 Mar 2024 03:12:44 +0300 Subject: [PATCH] Delete projects/markdown-it-js directory (#11612) Because can't connect projects upstream, I will delete this project. Thanks cluster fuzz team! --- projects/markdown-it-js/Dockerfile | 25 ------------------- projects/markdown-it-js/build.sh | 22 ----------------- projects/markdown-it-js/fuzz.js | 37 ---------------------------- projects/markdown-it-js/project.yaml | 8 ------ 4 files changed, 92 deletions(-) delete mode 100644 projects/markdown-it-js/Dockerfile delete mode 100644 projects/markdown-it-js/build.sh delete mode 100644 projects/markdown-it-js/fuzz.js delete mode 100644 projects/markdown-it-js/project.yaml diff --git a/projects/markdown-it-js/Dockerfile b/projects/markdown-it-js/Dockerfile deleted file mode 100644 index 0de2eaf33..000000000 --- a/projects/markdown-it-js/Dockerfile +++ /dev/null @@ -1,25 +0,0 @@ -# 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-javascript - -COPY build.sh $SRC/ - -RUN git clone https://github.com/markdown-it/markdown-it.git - -WORKDIR $SRC/markdown-it - -COPY fuzz*.js $SRC/markdown-it/ diff --git a/projects/markdown-it-js/build.sh b/projects/markdown-it-js/build.sh deleted file mode 100644 index 9a85641f5..000000000 --- a/projects/markdown-it-js/build.sh +++ /dev/null @@ -1,22 +0,0 @@ -# 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. -# -################################################################################ - -# build project -npm install -npm install @jazzer.js/core - -# build fuzzers -compile_javascript_fuzzer markdown-it fuzz.js -i markdown-it diff --git a/projects/markdown-it-js/fuzz.js b/projects/markdown-it-js/fuzz.js deleted file mode 100644 index bcfd305f0..000000000 --- a/projects/markdown-it-js/fuzz.js +++ /dev/null @@ -1,37 +0,0 @@ -// 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. -// -//////////////////////////////////////////////////////////////////////////////// - -const { FuzzedDataProvider } = require("@jazzer.js/core"); -const MarkdownIt = require('markdown-it'); - -/** - * @param { Buffer } fuzzerInputData - */ -module.exports.fuzz = function (fuzzerInputData) { - const data = new FuzzedDataProvider(fuzzerInputData); - const inputText = data.consumeRemainingAsString(); - try { - - const mdLinkifyEnabled = new MarkdownIt({ - linkify: true, - }); - mdLinkifyEnabled.render(inputText); - - - } catch (e) { - throw e; - } -}; diff --git a/projects/markdown-it-js/project.yaml b/projects/markdown-it-js/project.yaml deleted file mode 100644 index fe102aefe..000000000 --- a/projects/markdown-it-js/project.yaml +++ /dev/null @@ -1,8 +0,0 @@ -homepage: https://github.com/markdown-it/markdown-it -language: javascript -primary_contact: adoxalim@gmail.com -main_repo: https://github.com/markdown-it/markdown-it.git -fuzzing_engines: -- libfuzzer -sanitizers: -- none