mirror of https://github.com/google/oss-fuzz.git
unbound: fix new fuzzer names (#6842)
* unbound: fix new fuzzer names * unbound: fix license headers
This commit is contained in:
parent
723bdbc7a8
commit
0bed7945b3
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue