Skip to content

Commit

Permalink
goldmark: initial integration
Browse files Browse the repository at this point in the history
Signed-off-by: Nathaniel Brough <[email protected]>
  • Loading branch information
nathaniel-brough committed Jan 23, 2023
1 parent 7efd35c commit 245cb5c
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
25 changes: 25 additions & 0 deletions projects/goldmark/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# 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-go

RUN git clone --depth 1 https://github.com/yuin/goldmark.git goldmark # or use other version control
WORKDIR goldmark

RUN go install github.com/AdamKorcz/go-118-fuzz-build@latest && \
go get github.com/AdamKorcz/go-118-fuzz-build/testing

COPY build.sh $SRC/
19 changes: 19 additions & 0 deletions projects/goldmark/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash -eu
# 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.
#
################################################################################
go run _tools/build-oss-fuzz-corpus.go $OUT/oss_fuzz_test_seed_corpus.zip

compile_native_go_fuzzer github.com/yuin/goldmark/fuzz FuzzOss oss_fuzz_test
5 changes: 5 additions & 0 deletions projects/goldmark/project.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: go
primary_contact: "[email protected]"
main_repo: "https://github.com/yuin/goldmark"
vendor_ccs:
- [email protected]

0 comments on commit 245cb5c

Please sign in to comment.