diff --git a/projects/unbound/fuzz_1.c b/projects/unbound/fuzz_1.c index 7fbdcc533..22780b926 100644 --- a/projects/unbound/fuzz_1.c +++ b/projects/unbound/fuzz_1.c @@ -1,3 +1,15 @@ +/* Copyright 2021 Google LLC +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + /* * unbound-fuzzme.c - parse a packet provided on stdin (for fuzzing). * @@ -29,7 +41,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t len) { if (parse_packet(pkt, &msg, reg) != LDNS_RCODE_NOERROR) { goto out; } - if (parse_extract_edns(&msg, &edns, reg) != LDNS_RCODE_NOERROR) { + if (parse_extract_edns_from_response_msg(&msg, &edns, reg) != LDNS_RCODE_NOERROR) { goto out; } diff --git a/projects/unbound/fuzz_4.c b/projects/unbound/fuzz_4.c index 14fea4971..74b83659b 100644 --- a/projects/unbound/fuzz_4.c +++ b/projects/unbound/fuzz_4.c @@ -1,3 +1,15 @@ +/* Copyright 2021 Google LLC +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + /* * unbound-fuzzme.c - parse a packet provided on stdin (for fuzzing). * @@ -63,7 +75,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t nr) { if (parse_packet(pkt, &msg, reg) != LDNS_RCODE_NOERROR) { goto out; } - if (parse_extract_edns(&msg, &edns, reg) != LDNS_RCODE_NOERROR) { + if (parse_extract_edns_from_response_msg(&msg, &edns, reg) != LDNS_RCODE_NOERROR) { goto out; }