bind9/fuzz
Petr Špaček e2c627a067
Add dns_rdata_fromtext() fuzzer
... along with dns_rdataclass_fromtext and dns_rdatatype_fromtext

Most of the test binary is modified named-rrchecker. Main differences:
- reads single RR and exists
- does not refuse meta classes and rr types
We actually do have some fromtext code for meta-things so erroring out
in named-rrchecker would prevent us from testing this code.

Corpus has examples of all currently supported RR types. I did not do
any minimization.

In future use command

    diff -U0 \
	<(sed -n -e 's/^.*fromtext_\(.*\)(.*$/\1/p' lib/dns/code.h | \
		sort) \
	<(ls fuzz/dns_rdata_fromtext.in/)

to check for missing RR types.

(cherry picked from commit dc9ba2d3ef)
2022-02-24 11:40:19 +01:00
..
dns_master_load.in Add dns_master_loadbuffer() fuzzer 2022-02-24 10:13:10 +01:00
dns_message_parse.in Add packet from issue #4189 2020-09-30 13:24:29 +00:00
dns_name_fromtext_target.in oss-fuzz: Improve interaction with fuzzing tools and add new tests in fuzz/ directory 2018-08-23 10:07:28 +02:00
dns_rdata_fromtext.in Add dns_rdata_fromtext() fuzzer 2022-02-24 11:40:19 +01:00
dns_rdata_fromwire_text.in add svcb fuzzing seed 2021-08-18 13:49:48 +10:00
isc_lex_getmastertoken.in Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
isc_lex_gettoken.in Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
.gitignore Add dns_rdata_fromtext() fuzzer 2022-02-24 11:40:19 +01:00
afl.sh Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
dns_master_load.c Add dns_master_loadbuffer() fuzzer 2022-02-24 10:13:10 +01:00
dns_message_parse.c Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
dns_name_fromtext_target.c Add dns_rdata_fromtext() fuzzer 2022-02-24 11:40:19 +01:00
dns_rdata_fromtext.c Add dns_rdata_fromtext() fuzzer 2022-02-24 11:40:19 +01:00
dns_rdata_fromwire_text.c Add dns_rdata_fromtext() fuzzer 2022-02-24 11:40:19 +01:00
fuzz.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
FUZZING.md Fix configure options in FUZZING.md 2022-02-24 11:40:19 +01:00
isc_lex_getmastertoken.c Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
isc_lex_gettoken.c Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
libfuzzer.sh Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
main.c Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
Makefile.am Add dns_rdata_fromtext() fuzzer 2022-02-24 11:40:19 +01:00