unbound: fix new fuzzer names (#6842)

* unbound: fix new fuzzer names

* unbound: fix license headers
This commit is contained in:
DavidKorczynski 2021-12-01 23:01:01 +00:00 committed by GitHub
parent 723bdbc7a8
commit 0bed7945b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 2 deletions

View File

@ -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;
}

View File

@ -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;
}