# 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 # 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 lue='ciro/queue-response-experiment'>ciro/queue-response-experiment Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/integration/bunjs-only-snippets (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2022-06-10Don't show generic crash info when given invalid bunfig.tomlGravatar Jarred Sumner 1-0/+4
2022-06-10Update logger.zigGravatar Jarred Sumner 1-0/+4
2022-06-10Show tracingGravatar Jarred Sumner 1-1/+1
2022-06-10Update bunfig.zigGravatar Jarred Sumner 1-0/+1
2022-06-10Update jest.zigGravatar Jarred Sumner 1-6/+9
2022-06-09Update bun.d.tsGravatar Jarred Sumner 1-2/+5
2022-06-09Add typesGravatar Jarred Sumner 1-2/+32
2022-06-09`new Response(stream).arrayBuffer()` + 3 moreGravatar Jarred Sumner 16-39/+478
2022-06-09fix some memory leaks with stringsGravatar Jarred Sumner 4-28/+45
2022-06-09Support console.log(myBigInt)Gravatar Jarred Sumner 1-1/+6
2022-06-09Fix defaultProps with JSX optimizationGravatar Jarred Sumner 6-34/+73
2022-06-09small perf improvements to encodingGravatar Jarred Sumner 1-43/+37
2022-06-07Update event_loop.zigGravatar Jarred Sumner 1-1/+2