Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
Coredns
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Railgun
Coredns
Commits
46fa2a64
Commit
46fa2a64
authored
Sep 25, 2021
by
Gabi Davar
Committed by
GitHub
Sep 25, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update badges, remove fuzzit leftovers. (#4886)
parent
bbd317cb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
60 deletions
+5
-60
Makefile.fuzz
Makefile.fuzz
+0
-58
README.md
README.md
+5
-2
No files found.
Makefile.fuzz
deleted
100644 → 0
View file @
bbd317cb
# Makefile for fuzzing
#
# With https://app.fuzzit.dev/ we are continuously fuzzing CoreDNS.
#
# Use go-fuzz and needs the tools installed. For each fuzz.go in a plugin's directory
# you can start the fuzzing with: make -f Makefile.fuzz <plugin>
# e.g.
#
# make -f Makefile.fuzz forward
#
# Each plugin that wants to join the fuzzing fray only needs to add a fuzz.go that calls
# the plugin's ServeDNS and used the plugin/pkg/fuzz for the Do function.
#
# Installing go-fuzz is very tricky because it does not support Go modules, see the `Makefile`
# for the current trickery. The following may do the trick:
#
# GO111MODULE=off go get github.com/dvyukov/go-fuzz/go-fuzz-build
REPO
:=
"github.com/coredns/coredns"
FUZZIT
:=
v2.4.35
# set LIBFUZZER=YES to build libfuzzer compatible targets
FUZZ
:=
$(
dir
$(
wildcard
plugin/
*
/fuzz.go
))
# plugin/cache/
PLUGINS
:=
$(
foreach
f,
$(FUZZ)
,
$(
subst
plugin, ,
$
(
f:/
=
)))
# > /cache
PLUGINS
:=
$(
foreach
f,
$(PLUGINS)
,
$(
subst
/, ,
$(f)
))
# > cache
.PHONY
:
echo
echo
:
@
echo
$(PLUGINS)
corefile
all
:
$(PLUGINS) corefile
.PHONY
:
$(PLUGINS)
$(PLUGINS)
:
echo
ifeq
($(LIBFUZZER), YES)
go-fuzz-build
-libfuzzer
-o
$
(
@
)
.a ./plugin/
$
(
@
)
clang
-fsanitize
=
fuzzer
$
(
@
)
.a
-o
$
(
@
)
else
go-fuzz-build
$(REPO)
/plugin/
$
(
@
)
go-fuzz
-bin
=
./
$
(
@
)
-fuzz
.zip
-workdir
=
fuzz/
$
(
@
)
endif
.PHONY
:
corefile
corefile
:
ifeq
($(LIBFUZZER), YES)
go-fuzz-build
-libfuzzer
-o
$
(
@
)
.a ./test
clang
-fsanitize
=
fuzzer
$
(
@
)
.a
-o
$
(
@
)
else
go-fuzz-build
$(REPO)
/test
go-fuzz
-bin
=
./test-fuzz.zip
-workdir
=
fuzz/
$
(
@
)
endif
fuzzit
:
wget
--quiet
-O
fuzzit https://github.com/fuzzitdev/fuzzit/releases/download/
$(FUZZIT)
/fuzzit_Linux_x86_64
&&
chmod
+x fuzzit
.PHONY
:
clean
clean
:
rm
*
-fuzz
.zip
README.md
View file @
46fa2a64
[

](https://coredns.io)
[

](https://coredns.io)
[

](https://godoc.org/github.com/coredns/coredns)
[

](https://godoc.org/github.com/coredns/coredns)
[

](https://travis-ci.org/coredns/coredns)

[

](https://fuzzit.dev)



[

](https://circleci.com/gh/coredns/coredns)
[

](https://codecov.io/github/coredns/coredns?branch=master)
[

](https://codecov.io/github/coredns/coredns?branch=master)
[

](https://hub.docker.com/r/coredns/coredns)
[

](https://hub.docker.com/r/coredns/coredns)
[

](https://goreportcard.com/report/coredns/coredns)
[

](https://goreportcard.com/report/coredns/coredns)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment