mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
fuzz: check that ND options are parsed sucessfully
At that point the options have been parsed, sent and received again so `ndisc_parse_options` should never fail there (unless ndisc_send corrupts them somehow). It's a follow-up to https://github.com/systemd/systemd/pull/31807
This commit is contained in:
committed by
Yu Watanabe
parent
040cb66458
commit
a33a636b48
@@ -62,7 +62,7 @@ static void test_with_icmp6_packet(const uint8_t *data, size_t size) {
|
||||
if (icmp6_packet_receive(fd_pair[0], &packet) < 0)
|
||||
return;
|
||||
|
||||
(void) ndisc_parse_options(packet, &options);
|
||||
assert_se(ndisc_parse_options(packet, &options) >= 0);
|
||||
}
|
||||
|
||||
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
||||
|
||||
Reference in New Issue
Block a user