mirror of https://github.com/google/oss-fuzz.git
Delete projects/markdown-it-js directory (#11612)
Because can't connect projects upstream, I will delete this project. Thanks cluster fuzz team!
This commit is contained in:
parent
dbba35d85a
commit
cd700ebd69
|
@ -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/
|
|
@ -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
|
|
@ -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;
|
||||
}
|
||||
};
|
|
@ -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
|
Loading…
Reference in New Issue