From: Ronan Pigott Date: Thu, 25 Jan 2024 06:49:03 +0000 (-0700) Subject: test/fuzz: add dnr packets X-Git-Tag: v257-rc1~171^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ef7b6e656cfa6b9a99cadba92360ac25273f2e9;p=thirdparty%2Fsystemd.git 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. --- diff --git a/test/fuzz/fuzz-dhcp-client/dnr_v4 b/test/fuzz/fuzz-dhcp-client/dnr_v4 new file mode 100644 index 00000000000..22947362774 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 index 00000000000..142de342890 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 index 00000000000..59240efcc80 Binary files /dev/null and b/test/fuzz/fuzz-ndisc-rs/encrypted-dns differ