]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test/fuzz: add dnr packets
authorRonan Pigott <ronan@rjp.ie>
Thu, 25 Jan 2024 06:49:03 +0000 (23:49 -0700)
committerRonan Pigott <ronan@rjp.ie>
Mon, 21 Oct 2024 16:10:20 +0000 (09:10 -0700)
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.

test/fuzz/fuzz-dhcp-client/dnr_v4 [new file with mode: 0644]
test/fuzz/fuzz-dhcp6-client/dnr_v6 [new file with mode: 0644]
test/fuzz/fuzz-ndisc-rs/encrypted-dns [new file with mode: 0644]

diff --git a/test/fuzz/fuzz-dhcp-client/dnr_v4 b/test/fuzz/fuzz-dhcp-client/dnr_v4
new file mode 100644 (file)
index 0000000..2294736
Binary files /dev/null and b/test/fuzz/fuzz-dhcp-client/dnr_v4 differ
diff --git a/test/fuzz/fuzz-dhcp6-client/dnr_v6 b/test/fuzz/fuzz-dhcp6-client/dnr_v6
new file mode 100644 (file)
index 0000000..142de34
Binary files /dev/null and b/test/fuzz/fuzz-dhcp6-client/dnr_v6 differ
diff --git a/test/fuzz/fuzz-ndisc-rs/encrypted-dns b/test/fuzz/fuzz-ndisc-rs/encrypted-dns
new file mode 100644 (file)
index 0000000..59240ef
Binary files /dev/null and b/test/fuzz/fuzz-ndisc-rs/encrypted-dns differ