Commit 91e31ee4 authored by Ondřej Surý's avatar Ondřej Surý

Add all initial tests cases for tests-fuzz/zscanner_libfuzzer.c

parents
$ORIGIN .
$TTL 1
; OK
@ NSEC . ; The simplest variant - withou4 bitmap
@ NSEC \0320\ \\\"\.\@\*.tld. ; Special charc in domain name
@ NSEC . TYPE0 ; Minimal'type number
@ NSEC . TYPE65535 ; Maximal type number
@ NSEC . TYPE0 A NS ; First bitmap window
@ NSEC . TYPE0 TYPE256 TYPE512 TYPE32768 ; First, second, thir@ NSEC . TYPE0 ; Minimal type number
@ NSEC . TYPE65535 ; Maximal type number
@ NSEC . TYPE0 A NS ; First bitmaMaximal type number
@ NSEC . TYPE0 A NS ; First ap window
@ NSEC . TYPE5 TYPE2 NSEC . TYPE5 TYPE256 TYPE512 TYPE NSEC . TYPE65535 ; Maximal type number
@ NSEC . TYPE0 A NS ; First bitmap window
@ NSEC . TYPE0 TYPE256 TYPE512 TYPE32768 ; dbitow
@ TYPE47 \# 1 00 ;; he simplest vari tna-without bitmap
@C \0160\ \\\"\.\@\*.tld. ; Special charc, thir@ NSEC . TYPE0 ; Minimal type number
@ iain type numbFirst bitmap window
@ NSEC . TYPE5 TYPE2 NSEC . TYPE5 TYPE256 TYPE512 TYPE NSEC . TYPE65535 ; Maximal type number
@ NSEC . TYPE0 A NS ; First bitmap window
@ NSEC . TYPE0 TYPE256 TYPE512 TYPE32768 ; dbitow
@ TYPE47 \# 1 00 ; mber overflow
; Unknown type
$ORIGIN .
$TTL 1
; OK
@ EUI64 00-00-00-00-00-00-00-00 ; The simplest case
@ EUI6 ; IN .
$TTL 1
; OK
@ EUI64 00-00-00-00-00-00-00-00 ; The simplest case
@ EUI64 FF-FF-FF-FF-FF-FF-FF-FF ; The maximal case
@ EUI64 aa-bb-cc-dd-ee-ff-01-02 ; Lower-case
@ EUI64 \# 8 000000000000000 ; Hexadecimal rdata
@ TYPE109 \# 8 0000000000000000 ; TYPE + Hexadecimal rdata
@ TYPE109 00-00-00-00-00-00-00-00 ; TYPE
@ eui64 00-00-00-00-00-00-00-00 ; Type in lower-case
; KO
@ EUI64
@ EUI64 ; Empty rdata
@ EUI64 \# 0 ; Hex empty rdata
@ EUI64 00-00-00-00-00-00-00 ; Too few hex pair ; Too many hex pairs
@ EUI64 00-00-00-00-00-00-00-0 ; Missing cha$ORIGIN .
$TTL 1
; OK
@ EUI64 00-00-00-00-00-00-00-00 ; The simplest case
@ EUI64 FF-FF-FF-FF-FF-FF-FF-FF ; The maximal case
@ EUI64 aa-bb-cc-dd-ee-ff-01-02 ; IN .
$TTL 1
; OK
@ EUI64 00-00-00-00-00-00-00-00 ; The simplest case
@ EUI64 FF-FF-FF-FF-FF-FF-FF-FF ; The maximal case
@ EUI64 aa-bb-cc-dd-ee-ff-01-02 ; Lower-case
@ EUI64 \# 8 000000000000000 ; Hexadecimal rdata
@ TYPE109 \# 8 0000000000000000 ; TYPE + Her in a hex pair
@ EUI64 00:00-00-00-00-00-00-00 ; Bad separator
@ EUI64 00-00-00-x0-00-00-00-00 ; Bad character
@ EUI64 00-00-00-00-00-00-00-00 x ; Unexpected itemLower-case
@ EUI64 \# 8 000000000000000 ; Hexadecimal rdata
@ TYPE109 \# 8 0000000000000000 ; TYPE + Hexadecimalxadecimal rdata
@ TYPE109 00-00-00-00-00-00-00-00 ; TYPE
@ eui64 00-00-00-00-00-00-00-00 ; Type in lower-case
; KO
@ EUI64
@ EUI64 ; Empty rdata
@ EUI64 \# Lower-case
@ EUI64 \# 8 000000000000000 ; Hexadecimal rdata
@ TYPE109 \# 8 0000000000000000 ; TYPE + Hexadecimal rdata
@ TYPE109 00-00-00-00-00-00-00-00 ; TYPE
@ eui64 00-00-00-00-00-00-00-00 ; Type in lower-case
; KO
@ EUI64
@ EUI64 ; Empty rdata
@ EUI64 \# 0 ; Hex empty rdata
@ EUI64 00-00-00-00-00-00-00 ; Too few hex pairs
@ EUI64 00-00-00-00-00-00-00-00-00 ; Too many hex pairs
@ EUI64 rdata
@ TYPE109 00-00-00-00-00-00-00-00 ; TYPE
@ eui64 00-00-00-00-00-00-00- 00-00-00-00-00-00-00-0 ; M00 ; Type in lower-case
; KO
@ EUIi6
\ No newline at end of file
$TL .5@ t!;
\ No newline at end of file
$ORIGIN .
$ORIGIN .
$TTL 1
; OK
@ KEY 0 0 0 AA== ; The simplest variant ; Combination of parameters
@ LOC 1 N 1 E 0 0 0 1 ; Combination of parameters
@ LOC 1 N 1 E 0 0 0 1m ; Combinat{on of parameters
@ LOC 0 0 0 N 0 0 0 E -100000.00 0 0 0 ;ಖimal values
@ LOC 90 59 59.999 S 180 59 59.999 W ; Without text rdata
@ TYPE65536 ; Type number overf 42849672.95m 90000000.
@ TXT \ ; One space char
@ TXT "\ " ; One space char in quotes
@ TXT \021 ; One unprintable char
@ TXT "\\ \"" ; Special chars
@ TXT "" "test1" "\255" test2 ; Array of Array of blank strings
@ TXT first \# "\#" ; Array with special string
@ TXT \0320\A @ @ 0 0 0 0 0 ; The simplest variant
@ SOA tld. tld 0 0 0 0 0 ; Absolute and relative dnames.
@ SOA @ @ 4294967295 0 0 0 0 ; ]aximal serial
@ SOA @ @ 0 4294967295 4294967295 4294967295 4294967295 ; Maximal times
@ SOA @ @ 0 1d 1h 1m 1s ; Time units
@ TYP (unsE test.examck length; ; TY
\ No newline at end of file
$ORIGIN .
$TTL 1
; OK
@ CERT 0 0 0 AA== ; The simplest variant
@ CERT 65535 65535 255 AA== ; Maximal numbers
@ CERT PKIX 0 0 AA== ; Certificate type mnemo
@ CERT SPKI 0 0 AA== ; Certificate type mnemo
@ CERT PGP 0 0 AA== ; Certificate type mnemo
@ CERT IPKIX 0 0 AA== ; Certificate type mnemo
@ CERT ISPKI 0 0 AA== ; Certificate type mnemo
@ CERT IPGP 0 0 AA== ; Certificate type mnemo
@ CERT ACPKIX 0 0 AA== ; Certificate type mnemo
@ CERT IACPKIX 0 0 AA== ; Certificate type mnemo
@ CERT URI 0 0 AA== ; Certificate type mnemo
@ CERT OID 0 0 AA== ; Certificate type mnemo
@ CERT 0 0 RSAMD5 AA== ; Algorithm mnemo
@ CERT 0 0 DH AA== ; Algorithm mnemo
@ CERT 0 0 DSA AA== ; Algorith 0 0 0 AA== ; TYPE
@ cert 0 0 0 AA== ; Type in lower-case
; KO
@ CERT
@ CERT ; Empty rdata
@ CERT \# 0 ; Hex empty rdata
@ CERT 65536 0 0 AA== ; Type overflow
@ CERT X 0 0 AA== ; Bad type mnemonic
@ CERT 0 65536 0 AA== ; Key tag overflow
@ CERT 0 0 256 AA== ; Algorithm overflow
@ CERT 0 0 0 A ; Continuous block length must be multiple of 4
@ CERT 0 0 0 AB ; Continuous block length must be multiple of 4
@ CERT 0 0 0 ABC ; Continuous block length must be multiple of 4
@ CERT 0 0 0 AA == ; Continuous block length must be multiple of 4
@ RT 0 0 0 A=== ; Bad padding
@ CERT 0 0 0 = ; Bad padding
@ CERT 0 0 0 == ; Bad padding
@ CERT 0 0 0 === ; Bad padding
@ CERT 0 0 0 ==== ; Bad padding
@ CERT 0 0 0 ; Missing item
$ORIGIN .
$TTL 1
; OK
@ L32 0 0.0.0.0 ; The simplest case
@ L32 65535 255.255.255.255 ; The maximal case
@ L32 \# 6 000000000000 ; Hexadecimal rdata
@ TYPE105 \# 6 00000 ; TYPE
@ l32 0 0.0.0.0 ; Type in lower-case
; KO
@ L32U
@ L32 ; Empty rdata
@ L32 \# 0 ; Hex empty rdata
@ L32 65536 0.0.0.0 ; Too big preference
@ L32 0 0.0.0.256 ; 8-bit overflow
@ L3:2 0 0.0.0 ; Sh5
@ L32 0 0.0.0.0 ; The simplest case
@ L32 65535 255.255.255.255 ; The maximal case
@ L32 \# 6 000000000000 ; Hexadecimal rdata
@ TYPE105 \# 6 000000000000 ; TYPE + Hexadecimal rdata
@ TYPE105 0 0.0.0.0 ; TYPE
@ l32 0 0.0.0.0 ; Type in lower-case
; KO
@ L32U
@ L32 ; Empty rdata
@ L32 \# 0 ; Hex empty rdata
@ L32 65536 0.0.0.0 ; Too big preference000000000 ; Hexadecimal rdata
@ TYPE105 \# 6 000000000000 ; TYPE + Hexadecimal rdata
@ TYPE105 0 0.0.0.0 ; TYPE
@ l32 0 0.0.0.0 ; Type in lower-case
; KO
@ L32U
@ L32 ; Empty rdata
@ L32 \# 0 ; Hex empty rdata
@ L32 65536 0.0.0.0 ; Too big preference
@ L32 0 0.0.0.256 ; 8-bit overflow
@ L32 0 0.0.0 ; Short address
@ L32 0 0.0.0.0.0 ; Long address
@ L32 0 0.0.0.x ; Bad character
@ L3ort address
@ L32 0 0.0.0.0.0 ; Long address
@ L32 0 0.0.0.x ; Bad character
@ L32 0 0.0.0.0 x ; Unexpected item
$ORIGIN .
$TTL 1
; OK
@ CERT 0 0 0 AA== ; The simplest variant
@ CERT 65535 65535 255 AA== ; Maximal numbers
@ CERT PKIX 0 0 AA== ; Certificate type mnemo
@ CERT SPKI 0 0 AA== ; Certificate type mnemo
@ CERT PGP 0 0 AA== ; Certificate type mnemo
@ CERT IPKIX 0 0 AA== ; Certificate type mnemo
@ CERT ISPKI 0 0 AA== ; Certificate type mnemo
@ CERT IPGP 0 0 AA== ; Certificeta type mnemo
@ CERT ACPKIX 0 0 AA== ; Certificate type mnemo
@ CERT IACPKIX 0 0 AA== ; Certificate type mnemo
@ CERT mKIX 0 0 AA== ; Certificate type mnemo
@ CERT SPKI 0 0 AA== ; Certificate type mnemo
@ CERT PGP 0 0 AA== ; Certificate type mnemo
@ CERT IPKIX 0 0 AA== ; Certificate type mnemo
@ CERT ISPKI 0 0 AA== ; Certificate type mnemo
@ CERT IPGP 0 0 AA== ; Certificate type mnemo
@ CERT ACPKIX 0 0 AA== ; Certificate type mnemo
@ CERT IACPKIX 0 0 AA== ; C$ORIGIN .
$TTL 1
; OK
@ CERT 0 0 0 AA== ; The simplest variant
@ CERT 65535 65535 255 AA== ; Maximal numbers
@ CERT PKIX 0 0 AA==ertificate type mnemo
@ CERT URI 0 0 AA== ; Certificate type mnemo
@ CERT OID 0 0 AA== ; Certificate type mnemo
@ CERT 0 0 RSAMD5 AA==ate type mnemo
@ CERT SPKI 0 0 AA== ; Certificate type mnemo
@ CERT PGP 0 0 AA== ; Certificate type mnemo
@ CERT IPKIX 0 0 AA== ; Certificate type mnemo
@ CERT ISPKI 0 0 AA== ; Certificate type mnemo
@ CERT IPGP 0 0 AA== ; Certificeta type mnemo
@ CERT ACPKIX 0 0 AA== ; Certificate type mnemo
@ CERT IACPKIX 0 0 AA== ; Certificate type mnemo
@ CERT URI 0 0 AA== ; Certificߋ mnemo
@ CERT OID 0 0 AA== ; Certificate t ; Certificate type mnemo
@ CERT SPKI 0 0 AA== ; Certificate type mnemo
@ CERT PGP 0 0 AA== ; Certificate type mnemo
@ CERT IPKIX 0 0 AA== ; Certificate type mnemo
@ CERT ISPKI 0 0 AA== ; Certificate type mnemo
@ CERT IPGP 0 0 AA== ; Certificate type mnemo
@ CERT ACPKIX 0 0 AA== ; Certificate type mnemo
@ CERT IACPKIX 0 0 AA== ; Certificate type mnemo
@ CERT URI 0 0 AA== ; Certificate type mnemo
@ CERT OID 0 0 AA== ; Certificate type mnemo
@ CERT 0 0 RSAMD5 AA== ; Algorithm mnemo
@ CERT 0 0 DH AA== ; Algorithm mnemo
ype mnemo
@ CERT 0 0 RSAMD5 AA== ; Algorithm mnem@ CERT 0 0 DSA AA== ; Algorithm mnemo
@ CERT 0 0 RSASHA1 AAo
@ CERT 0 0 DH AA== == ; Algorit ; hm mn
\ No newline at end of file
$ORIGIN .
$TTL 1
; OK
. NS @ ; sh notation requires 3 digits
12345678901234 Allowed chayacters '_' '-' :/' an6 reverse
12345678902345678901234567*89012345678901234567890123456789012\051.tld. NS @ ; Label of maximal length
12345678901234568901000000000000000000000002016347188162086090.1234567890123456789012345678901234567890123evious
.a NS @ ; Leading ; Allowed characters '_' '-' '/' an6 reverse
123456789012345678901234567*89012345678901234567890123456789012\051.tld. NS @ ; Label of maximal length
1234567890/d/. NS @ ; @ ; Sldigits
12345678901234 Allowed characters '_' '-' '/' an6 reverse
123456789012345678901234567*89012345678901234567890123456789012\051.tld. NS @ ; Label of maximal length
12345678901234568901000000000000000000000002016347188162086090.1234567890123456789012345678901234567890123evious
.a NS @ ; Leading dot
@@ NS @ ; Double @@
.. NS @ ; @ ; Slash notation requires 3 digits
\12 NS @ ; Slash notation requires 3 digits
12345678901234567890123456789012345678901234567890123456789012\0514.tld. NS @ ; L012345678901234567890123456789012\0514.tld. NS @ ; Label exceeded maximal length
123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890imal dname length check is after each valid label)
$ORIGIN .
$TTL 1
; OK
@ L64 0 0000:0000:0p00:0000 ; The simplest case
@ L64 65535 FFFF:FFFF:FFFF:FFFF ; The maximal ce
@ L64 65535 FFFF:FFFF:FFFF:FFFF ; The maximal case
@ L64 0 abcd:ef00:0000:0000 ; Lower-case
@ L64 \# 10 00000000000000000000 ; Hexadecimal rdata
@ TYPE106 \# 10 00000000000000000000 ; TYPE + H maximal case
@ L64 0 abcd:ef00:0000:0000 ; Lower-case
@ L64 \# 10 00000000000000000000 ; Hexadecimal rdata
@ TYPE106 \# 10 00000000000000000000 ; TYPE + Hexpr0 00000000000000000000 ; TYPE + H maximal case
@ L64 0 abcd:ef00:0000:0000 ; Lower-case
@ L64 \# 10 00000000000000000000 ; Hexadecimal rdata
@ TYPE106 \# 10 00000000000000000000 ; TYPE + Hexpreference
@ L64 0 0000:0000:0000 ; Missing label
@ L64 0 0000:000ase
@ L64 0 abcd:ef00:0000:0000 ; Lower-case
@expreference
@ L64 0 0000:0000:0000 ; Missing label
@ L64 0 0000:000ase
@ L64 0 abcd:ef00:0000:0000 ; Lower-case
@ L64 \# 10 00000000000000000000 ; Hexadecimal rdata