Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f8fef9f9 authored by Krzysztof Kosiński's avatar Krzysztof Kosiński Committed by Automerger Merge Worker
Browse files

Add missing headers for MAXHOSTNAMELEN. am: 9ab8bba6

parents 814455c7 9ab8bba6
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
#include <netdb.h>
#include <sys/param.h>

#include <string>

#include "resolv_fuzzer_utils.h"

namespace android::net {
@@ -22,7 +27,7 @@ void TestResolvGetaddrinfo(FuzzedDataProvider& fdp) {

// Entry point of fuzzing test.
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
    [[maybe_unused]] static bool initialized = DoInit();
    [[maybe_unused]] static const bool initialized = DoInit();
    // Sets delayQueries to let DnsTlsFrontend handle 2 queries at once.
    // If the Address Family is AF_UNSPEC, the frontend will receive both ipv4 and ipv6 queries.
    // Without setting delayQueries, the second query's connection between the dns_tls_frontend and
+6 −1
Original line number Diff line number Diff line
#include <netdb.h>
#include <sys/param.h>

#include <string>

#include "resolv_fuzzer_utils.h"

namespace android::net {
@@ -21,7 +26,7 @@ void TestResolvGethostbyname(FuzzedDataProvider& fdp) {

// Entry point of fuzzing test.
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
    [[maybe_unused]] static bool initialized = DoInit();
    [[maybe_unused]] static const bool initialized = DoInit();
    FuzzedDataProvider fdp(data, size);

    // Chooses doh or dot.