]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
add cbor corpus, and run the fuzzer tests
authorAlan T. DeKok <aland@freeradius.org>
Tue, 12 Nov 2024 00:03:28 +0000 (19:03 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 12 Nov 2024 12:28:13 +0000 (07:28 -0500)
src/bin/all.mk
src/tests/fuzzer-corpus/cbor.tar [new file with mode: 0644]
src/tests/unit/protocols/cbor/base.txt

index 33227c0d8a72e99f5d47bad222f462a53aa03fa8..88d00d5b965116b88c0f08fd789c0b24e7e3e147 100644 (file)
@@ -25,7 +25,7 @@ SUBMAKEFILES := \
 #  The fuzzer binary needs special magic to run, as it doesn't parse
 #  command-line options.  See fuzzer.mk for details.
 #
-FUZZER_PROTOCOLS = radius dhcpv4 dhcpv6 dns tacacs vmps tftp util bfd
+FUZZER_PROTOCOLS = radius dhcpv4 dhcpv6 dns tacacs vmps tftp util bfd cbor
 
 #
 #  Add the fuzzer only if everything was built with the fuzzing flags.
diff --git a/src/tests/fuzzer-corpus/cbor.tar b/src/tests/fuzzer-corpus/cbor.tar
new file mode 100644 (file)
index 0000000..d914ddc
--- /dev/null
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8bba136bac878b874ec9fe9563c0f87b30d50456e2799b83cc9ca6ef59b6f869
+size 10752
index 2dd82d433b6d2b259d5137b9e00c722bfabb4dc9..4ad0c9ae2d39f971af3b5b2cb7ffde76c3fa48af 100644 (file)
@@ -7,6 +7,8 @@ proto cbor
 # complex attributes.
 proto-dictionary radius
 
+fuzzer-out cbor
+
 #
 #  a1: map of 1 item
 #  01: integer of value 1
@@ -88,4 +90,4 @@ decode-pair -
 match Class = 0x
 
 count
-match 38
+match 39