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

Commit 9ab8bba6 authored by Krzysztof Kosiński's avatar Krzysztof Kosiński
Browse files

Add missing headers for MAXHOSTNAMELEN.

This macro was previously pulled in via some obscure transitive
inclusion that no longer works in more recent releases of the
protobuf library.

Bug: 203713560
Test: presubmit
Change-Id: Icb18ef627ae2004e86b30e8d3884f9644399ef0f
parent 41959e6a
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.