mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-17 19:14:04 -08:00
2b02fcb0cb
Update vendor `github.com/miekg/dns` to `v1.0.4` release. * Add dependent vendor `golang.org/x/crypto/ed25519`. * Add dependent vendor `golang.org/x/crypto/ed25519/internal/edwards25519`. * Add dependent vendor `golang.org/x/net/bpf`. * Add dependent vendor `golang.org/x/net/internal/iana`. * Add dependent vendor `golang.org/x/net/internal/socket`. * Add dependent vendor `golang.org/x/net/ipv4`. * Add dependent vendor `golang.org/x/net/ipv6`.
34 lines
671 B
Makefile
34 lines
671 B
Makefile
# Makefile for fuzzing
|
|
#
|
|
# Use go-fuzz and needs the tools installed.
|
|
# See https://blog.cloudflare.com/dns-parser-meet-go-fuzzer/
|
|
#
|
|
# Installing go-fuzz:
|
|
# $ make -f Makefile.fuzz get
|
|
# Installs:
|
|
# * github.com/dvyukov/go-fuzz/go-fuzz
|
|
# * get github.com/dvyukov/go-fuzz/go-fuzz-build
|
|
|
|
all: build
|
|
|
|
.PHONY: build
|
|
build:
|
|
go-fuzz-build -tags fuzz github.com/miekg/dns
|
|
|
|
.PHONY: build-newrr
|
|
build-newrr:
|
|
go-fuzz-build -func FuzzNewRR -tags fuzz github.com/miekg/dns
|
|
|
|
.PHONY: fuzz
|
|
fuzz:
|
|
go-fuzz -bin=dns-fuzz.zip -workdir=fuzz
|
|
|
|
.PHONY: get
|
|
get:
|
|
go get github.com/dvyukov/go-fuzz/go-fuzz
|
|
go get github.com/dvyukov/go-fuzz/go-fuzz-build
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm *-fuzz.zip
|