summaryrefslogtreecommitdiffstats
path: root/test/fuzz
diff options
context:
space:
mode:
authorRonan Pigott <ronan@rjp.ie>2024-01-25 07:49:03 +0100
committerRonan Pigott <ronan@rjp.ie>2024-10-21 18:10:20 +0200
commit8ef7b6e656cfa6b9a99cadba92360ac25273f2e9 (patch)
tree61f7cde9786cefbfb2f1c96e63f509230b804141 /test/fuzz
parentnetwork: Serialize ipv6ra DNR (diff)
downloadsystemd-8ef7b6e656cfa6b9a99cadba92360ac25273f2e9.tar.xz
systemd-8ef7b6e656cfa6b9a99cadba92360ac25273f2e9.zip
test/fuzz: add dnr packets
The structure of DNR options is considerably more complicated than most DHCP options, and as a result the fuzzer has poor coverage of these code paths. This adds some DNR packets to the fuzzing corpus, not with the intent of capturing some specific edge case, but with the intent to rapidly improve the fuzzers' coverage of these codepaths by giving it a valid example to begin with. Also include an ndisc router advert with a few Encrypted DNS options, for the same purpose.
Diffstat (limited to 'test/fuzz')
-rw-r--r--test/fuzz/fuzz-dhcp-client/dnr_v4bin0 -> 300 bytes
-rw-r--r--test/fuzz/fuzz-dhcp6-client/dnr_v6bin0 -> 90 bytes
-rw-r--r--test/fuzz/fuzz-ndisc-rs/encrypted-dnsbin0 -> 152 bytes
3 files changed, 0 insertions, 0 deletions
diff --git a/test/fuzz/fuzz-dhcp-client/dnr_v4 b/test/fuzz/fuzz-dhcp-client/dnr_v4
new file mode 100644
index 0000000000..2294736277
--- /dev/null
+++ b/test/fuzz/fuzz-dhcp-client/dnr_v4
Binary files differ
diff --git a/test/fuzz/fuzz-dhcp6-client/dnr_v6 b/test/fuzz/fuzz-dhcp6-client/dnr_v6
new file mode 100644
index 0000000000..142de34289
--- /dev/null
+++ b/test/fuzz/fuzz-dhcp6-client/dnr_v6
Binary files differ
diff --git a/test/fuzz/fuzz-ndisc-rs/encrypted-dns b/test/fuzz/fuzz-ndisc-rs/encrypted-dns
new file mode 100644
index 0000000000..59240efcc8
--- /dev/null
+++ b/test/fuzz/fuzz-ndisc-rs/encrypted-dns
Binary files differ