mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-28 12:31:29 -05:00
... 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
|
||
|---|---|---|
| .. | ||
| dns_master_load.in | ||
| dns_message_parse.in | ||
| dns_name_fromtext_target.in | ||
| dns_rdata_fromtext.in | ||
| dns_rdata_fromwire_text.in | ||
| isc_lex_getmastertoken.in | ||
| isc_lex_gettoken.in | ||
| .gitignore | ||
| afl.sh | ||
| dns_master_load.c | ||
| dns_message_parse.c | ||
| dns_name_fromtext_target.c | ||
| dns_rdata_fromtext.c | ||
| dns_rdata_fromwire_text.c | ||
| fuzz.h | ||
| FUZZING.md | ||
| isc_lex_getmastertoken.c | ||
| isc_lex_gettoken.c | ||
| libfuzzer.sh | ||
| main.c | ||
| Makefile.am | ||