Coverage Report

Created: 2026-10-31 06:46

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/curl_fuzzer/proto_fuzzer/profile_fuzzer.h
Line
Count
Source
1
/*
2
 * Copyright (C) Max Dymond, <cmeister2@gmail.com>, et al.
3
 *
4
 * SPDX-License-Identifier: curl
5
 */
6
7
/// @file
8
/// @brief Type-safe libprotobuf-mutator hooks for one generated target profile.
9
10
#ifndef PROTO_FUZZER_PROFILE_FUZZER_H_
11
#define PROTO_FUZZER_PROFILE_FUZZER_H_
12
13
#include <libprotobuf-mutator/src/libfuzzer/libfuzzer_macro.h>
14
15
#include <array>
16
#include <cstddef>
17
#include <cstdint>
18
19
#include "curl_fuzzer.pb.h"
20
#include "proto_fuzzer/target_policy.h"
21
#include "proto_fuzzer/target_profile.h"
22
23
namespace proto_fuzzer {
24
25
/// Ordinary runtime binding for one generated protobuf profile.
26
///
27
/// A single binding owns the target profile and every typed LPM callback. This
28
/// keeps libFuzzer entrypoints non-template while guaranteeing mutation,
29
/// crossover, and loading all use the same concrete protobuf message type.
30
struct ProfileFuzzerTraits {
31
  /// libFuzzer custom-mutator callback for the bound message type.
32
  using CustomMutator = std::size_t (*)(std::uint8_t*, std::size_t, std::size_t, unsigned int);
33
  /// libFuzzer custom-crossover callback for the bound message type.
34
  using CustomCrossOver = std::size_t (*)(const std::uint8_t*, std::size_t, const std::uint8_t*, std::size_t,
35
                                          std::uint8_t*, std::size_t, unsigned int);
36
  /// Parse and lower one input using the bound message type.
37
  using InputLoader = bool (*)(const std::uint8_t*, std::size_t, curl::fuzzer::proto::Scenario*);
38
  /// Optional profiling-only callback that exercises typed mutation helpers.
39
  using MutationProbe = void (*)();
40
41
  /// Runtime policy permanently associated with all callbacks.
42
  TargetProfile profile;
43
  /// Typed mutation callback.
44
  CustomMutator custom_mutator;
45
  /// Typed crossover callback.
46
  CustomCrossOver custom_crossover;
47
  /// Typed parse-and-lower callback.
48
  InputLoader load_input;
49
  /// Timing-profile probe, or nullptr for ordinary profiles.
50
  MutationProbe probe_mutation_helpers;
51
};
52
53
/// Bind all LPM operations for one process to one protobuf message type.
54
///
55
/// Traits must provide:
56
///
57
/// - `using Message` for the generated profile root;
58
/// - `static constexpr TargetProfile kProfile`;
59
/// - `Lower(Message*, curl::fuzzer::proto::Scenario*)`; and
60
/// - `Lift(curl::fuzzer::proto::Scenario*, Message*)`; and
61
/// - `PruneConditionalEligibility(curl::fuzzer::proto::Scenario*,
62
///   TargetProfile)`.
63
///
64
/// Lower and Lift transfer fields directly. They must not serialize, reparse,
65
/// reflection-swap unlike message types, or retain pointers into the source.
66
/// Keeping the same Message in mutation, crossover, and loading is required by
67
/// LPM's process-wide last-mutation cache.
68
template <typename Traits>
69
class ProfileFuzzerHooks {
70
 public:
71
  /// Concrete generated protobuf root for this target profile.
72
  using Message = typename Traits::Message;
73
  /// Shared internal Scenario consumed by the runtime.
74
  using RuntimeScenario = curl::fuzzer::proto::Scenario;
75
76
  /// Register the profile postprocessor before the first LPM operation.
77
337k
  static void EnsurePostProcessor() {
78
337k
    static const protobuf_mutator::libfuzzer::PostProcessorRegistration<Message> registration(
79
337k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastTelnetTraits>::EnsurePostProcessor()::{lambda(curl::fuzzer::generated::fast_telnet::FastTelnetScenario*, unsigned int)#1}::operator()(curl::fuzzer::generated::fast_telnet::FastTelnetScenario*, unsigned int) const
Line
Count
Source
79
4.54k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastFtpTraits>::EnsurePostProcessor()::{lambda(curl::fuzzer::generated::fast_ftp::FastFtpScenario*, unsigned int)#1}::operator()(curl::fuzzer::generated::fast_ftp::FastFtpScenario*, unsigned int) const
Line
Count
Source
79
7.47k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastSmtpTraits>::EnsurePostProcessor()::{lambda(curl::fuzzer::generated::fast_smtp::FastSmtpScenario*, unsigned int)#1}::operator()(curl::fuzzer::generated::fast_smtp::FastSmtpScenario*, unsigned int) const
Line
Count
Source
79
6.02k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::HttpsH2Traits>::EnsurePostProcessor()::{lambda(curl::fuzzer::generated::https_h2::HttpsH2Scenario*, unsigned int)#1}::operator()(curl::fuzzer::generated::https_h2::HttpsH2Scenario*, unsigned int) const
Line
Count
Source
79
14.7k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastTftpTraits>::EnsurePostProcessor()::{lambda(curl::fuzzer::generated::fast_tftp::FastTftpScenario*, unsigned int)#1}::operator()(curl::fuzzer::generated::fast_tftp::FastTftpScenario*, unsigned int) const
Line
Count
Source
79
2.38k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastWebSocketTraits>::EnsurePostProcessor()::{lambda(curl::fuzzer::generated::fast_websocket::FastWebSocketScenario*, unsigned int)#1}::operator()(curl::fuzzer::generated::fast_websocket::FastWebSocketScenario*, unsigned int) const
Line
Count
Source
79
11.8k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastDictTraits>::EnsurePostProcessor()::{lambda(curl::fuzzer::generated::fast_dict::FastDictScenario*, unsigned int)#1}::operator()(curl::fuzzer::generated::fast_dict::FastDictScenario*, unsigned int) const
Line
Count
Source
79
3.03k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::DeepHttpTraits>::EnsurePostProcessor()::{lambda(curl::fuzzer::generated::deep_http::DeepHttpScenario*, unsigned int)#1}::operator()(curl::fuzzer::generated::deep_http::DeepHttpScenario*, unsigned int) const
Line
Count
Source
79
21.7k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastIpfsTraits>::EnsurePostProcessor()::{lambda(curl::fuzzer::generated::fast_ipfs::FastIpfsScenario*, unsigned int)#1}::operator()(curl::fuzzer::generated::fast_ipfs::FastIpfsScenario*, unsigned int) const
Line
Count
Source
79
12.1k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastHttpsTraits>::EnsurePostProcessor()::{lambda(curl::fuzzer::generated::fast_https::FastHttpsScenario*, unsigned int)#1}::operator()(curl::fuzzer::generated::fast_https::FastHttpsScenario*, unsigned int) const
Line
Count
Source
79
40.6k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastImapTraits>::EnsurePostProcessor()::{lambda(curl::fuzzer::generated::fast_imap::FastImapScenario*, unsigned int)#1}::operator()(curl::fuzzer::generated::fast_imap::FastImapScenario*, unsigned int) const
Line
Count
Source
79
6.48k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastGopherTraits>::EnsurePostProcessor()::{lambda(curl::fuzzer::generated::fast_gopher::FastGopherScenario*, unsigned int)#1}::operator()(curl::fuzzer::generated::fast_gopher::FastGopherScenario*, unsigned int) const
Line
Count
Source
79
8.96k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastFileTraits>::EnsurePostProcessor()::{lambda(curl::fuzzer::generated::fast_file::FastFileScenario*, unsigned int)#1}::operator()(curl::fuzzer::generated::fast_file::FastFileScenario*, unsigned int) const
Line
Count
Source
79
4.13k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::TimingTraits>::EnsurePostProcessor()::{lambda(curl::fuzzer::generated::timing::TimingScenario*, unsigned int)#1}::operator()(curl::fuzzer::generated::timing::TimingScenario*, unsigned int) const
Line
Count
Source
79
16.9k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastPop3Traits>::EnsurePostProcessor()::{lambda(curl::fuzzer::generated::fast_pop3::FastPop3Scenario*, unsigned int)#1}::operator()(curl::fuzzer::generated::fast_pop3::FastPop3Scenario*, unsigned int) const
Line
Count
Source
79
4.14k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::MultiTraits>::EnsurePostProcessor()::{lambda(curl::fuzzer::generated::multi::MultiScenario*, unsigned int)#1}::operator()(curl::fuzzer::generated::multi::MultiScenario*, unsigned int) const
Line
Count
Source
79
18.2k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastHttp3Traits>::EnsurePostProcessor()::{lambda(curl::fuzzer::generated::fast_http3::FastHttp3Scenario*, unsigned int)#1}::operator()(curl::fuzzer::generated::fast_http3::FastHttp3Scenario*, unsigned int) const
Line
Count
Source
79
7.66k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::CompatibilityTraits>::EnsurePostProcessor()::{lambda(curl::fuzzer::generated::compatibility::CompatibilityScenario*, unsigned int)#1}::operator()(curl::fuzzer::generated::compatibility::CompatibilityScenario*, unsigned int) const
Line
Count
Source
79
20.6k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::ResolverTraits>::EnsurePostProcessor()::{lambda(curl::fuzzer::generated::resolver::ResolverScenario*, unsigned int)#1}::operator()(curl::fuzzer::generated::resolver::ResolverScenario*, unsigned int) const
Line
Count
Source
79
10.4k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::ProxyTransportTraits>::EnsurePostProcessor()::{lambda(curl::fuzzer::generated::proxy_transport::ProxyTransportScenario*, unsigned int)#1}::operator()(curl::fuzzer::generated::proxy_transport::ProxyTransportScenario*, unsigned int) const
Line
Count
Source
79
14.1k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastHttp2Traits>::EnsurePostProcessor()::{lambda(curl::fuzzer::generated::fast_http2::FastHttp2Scenario*, unsigned int)#1}::operator()(curl::fuzzer::generated::fast_http2::FastHttp2Scenario*, unsigned int) const
Line
Count
Source
79
17.0k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastHttpTraits>::EnsurePostProcessor()::{lambda(curl::fuzzer::generated::fast_http::FastHttpScenario*, unsigned int)#1}::operator()(curl::fuzzer::generated::fast_http::FastHttpScenario*, unsigned int) const
Line
Count
Source
79
16.8k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::ApiTraits>::EnsurePostProcessor()::{lambda(curl::fuzzer::generated::api::ApiScenario*, unsigned int)#1}::operator()(curl::fuzzer::generated::api::ApiScenario*, unsigned int) const
Line
Count
Source
79
19.9k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastLdapTraits>::EnsurePostProcessor()::{lambda(curl::fuzzer::generated::fast_ldap::FastLdapScenario*, unsigned int)#1}::operator()(curl::fuzzer::generated::fast_ldap::FastLdapScenario*, unsigned int) const
Line
Count
Source
79
6.69k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastRtspTraits>::EnsurePostProcessor()::{lambda(curl::fuzzer::generated::fast_rtsp::FastRtspScenario*, unsigned int)#1}::operator()(curl::fuzzer::generated::fast_rtsp::FastRtspScenario*, unsigned int) const
Line
Count
Source
79
7.85k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastMqttTraits>::EnsurePostProcessor()::{lambda(curl::fuzzer::generated::fast_mqtt::FastMqttScenario*, unsigned int)#1}::operator()(curl::fuzzer::generated::fast_mqtt::FastMqttScenario*, unsigned int) const
Line
Count
Source
79
4.21k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastSecureWebSocketTraits>::EnsurePostProcessor()::{lambda(curl::fuzzer::generated::fast_secure_websocket::FastSecureWebSocketScenario*, unsigned int)#1}::operator()(curl::fuzzer::generated::fast_secure_websocket::FastSecureWebSocketScenario*, unsigned int) const
Line
Count
Source
79
9.88k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::H2ProxyTraits>::EnsurePostProcessor()::{lambda(curl::fuzzer::generated::h2_proxy::H2ProxyScenario*, unsigned int)#1}::operator()(curl::fuzzer::generated::h2_proxy::H2ProxyScenario*, unsigned int) const
Line
Count
Source
79
13.5k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
80
337k
    (void)registration;
81
337k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastTelnetTraits>::EnsurePostProcessor()
Line
Count
Source
77
4.61k
  static void EnsurePostProcessor() {
78
4.61k
    static const protobuf_mutator::libfuzzer::PostProcessorRegistration<Message> registration(
79
4.61k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
80
4.61k
    (void)registration;
81
4.61k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastFtpTraits>::EnsurePostProcessor()
Line
Count
Source
77
7.56k
  static void EnsurePostProcessor() {
78
7.56k
    static const protobuf_mutator::libfuzzer::PostProcessorRegistration<Message> registration(
79
7.56k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
80
7.56k
    (void)registration;
81
7.56k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastSmtpTraits>::EnsurePostProcessor()
Line
Count
Source
77
6.17k
  static void EnsurePostProcessor() {
78
6.17k
    static const protobuf_mutator::libfuzzer::PostProcessorRegistration<Message> registration(
79
6.17k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
80
6.17k
    (void)registration;
81
6.17k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::HttpsH2Traits>::EnsurePostProcessor()
Line
Count
Source
77
15.1k
  static void EnsurePostProcessor() {
78
15.1k
    static const protobuf_mutator::libfuzzer::PostProcessorRegistration<Message> registration(
79
15.1k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
80
15.1k
    (void)registration;
81
15.1k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastTftpTraits>::EnsurePostProcessor()
Line
Count
Source
77
2.44k
  static void EnsurePostProcessor() {
78
2.44k
    static const protobuf_mutator::libfuzzer::PostProcessorRegistration<Message> registration(
79
2.44k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
80
2.44k
    (void)registration;
81
2.44k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastWebSocketTraits>::EnsurePostProcessor()
Line
Count
Source
77
11.9k
  static void EnsurePostProcessor() {
78
11.9k
    static const protobuf_mutator::libfuzzer::PostProcessorRegistration<Message> registration(
79
11.9k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
80
11.9k
    (void)registration;
81
11.9k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastDictTraits>::EnsurePostProcessor()
Line
Count
Source
77
3.11k
  static void EnsurePostProcessor() {
78
3.11k
    static const protobuf_mutator::libfuzzer::PostProcessorRegistration<Message> registration(
79
3.11k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
80
3.11k
    (void)registration;
81
3.11k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::DeepHttpTraits>::EnsurePostProcessor()
Line
Count
Source
77
21.9k
  static void EnsurePostProcessor() {
78
21.9k
    static const protobuf_mutator::libfuzzer::PostProcessorRegistration<Message> registration(
79
21.9k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
80
21.9k
    (void)registration;
81
21.9k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastIpfsTraits>::EnsurePostProcessor()
Line
Count
Source
77
12.1k
  static void EnsurePostProcessor() {
78
12.1k
    static const protobuf_mutator::libfuzzer::PostProcessorRegistration<Message> registration(
79
12.1k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
80
12.1k
    (void)registration;
81
12.1k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastHttpsTraits>::EnsurePostProcessor()
Line
Count
Source
77
41.3k
  static void EnsurePostProcessor() {
78
41.3k
    static const protobuf_mutator::libfuzzer::PostProcessorRegistration<Message> registration(
79
41.3k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
80
41.3k
    (void)registration;
81
41.3k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastImapTraits>::EnsurePostProcessor()
Line
Count
Source
77
6.62k
  static void EnsurePostProcessor() {
78
6.62k
    static const protobuf_mutator::libfuzzer::PostProcessorRegistration<Message> registration(
79
6.62k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
80
6.62k
    (void)registration;
81
6.62k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastGopherTraits>::EnsurePostProcessor()
Line
Count
Source
77
9.06k
  static void EnsurePostProcessor() {
78
9.06k
    static const protobuf_mutator::libfuzzer::PostProcessorRegistration<Message> registration(
79
9.06k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
80
9.06k
    (void)registration;
81
9.06k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastFileTraits>::EnsurePostProcessor()
Line
Count
Source
77
4.17k
  static void EnsurePostProcessor() {
78
4.17k
    static const protobuf_mutator::libfuzzer::PostProcessorRegistration<Message> registration(
79
4.17k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
80
4.17k
    (void)registration;
81
4.17k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::TimingTraits>::EnsurePostProcessor()
Line
Count
Source
77
17.1k
  static void EnsurePostProcessor() {
78
17.1k
    static const protobuf_mutator::libfuzzer::PostProcessorRegistration<Message> registration(
79
17.1k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
80
17.1k
    (void)registration;
81
17.1k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastPop3Traits>::EnsurePostProcessor()
Line
Count
Source
77
4.21k
  static void EnsurePostProcessor() {
78
4.21k
    static const protobuf_mutator::libfuzzer::PostProcessorRegistration<Message> registration(
79
4.21k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
80
4.21k
    (void)registration;
81
4.21k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::MultiTraits>::EnsurePostProcessor()
Line
Count
Source
77
18.4k
  static void EnsurePostProcessor() {
78
18.4k
    static const protobuf_mutator::libfuzzer::PostProcessorRegistration<Message> registration(
79
18.4k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
80
18.4k
    (void)registration;
81
18.4k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastHttp3Traits>::EnsurePostProcessor()
Line
Count
Source
77
7.97k
  static void EnsurePostProcessor() {
78
7.97k
    static const protobuf_mutator::libfuzzer::PostProcessorRegistration<Message> registration(
79
7.97k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
80
7.97k
    (void)registration;
81
7.97k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::CompatibilityTraits>::EnsurePostProcessor()
Line
Count
Source
77
21.0k
  static void EnsurePostProcessor() {
78
21.0k
    static const protobuf_mutator::libfuzzer::PostProcessorRegistration<Message> registration(
79
21.0k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
80
21.0k
    (void)registration;
81
21.0k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::ResolverTraits>::EnsurePostProcessor()
Line
Count
Source
77
10.7k
  static void EnsurePostProcessor() {
78
10.7k
    static const protobuf_mutator::libfuzzer::PostProcessorRegistration<Message> registration(
79
10.7k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
80
10.7k
    (void)registration;
81
10.7k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::ProxyTransportTraits>::EnsurePostProcessor()
Line
Count
Source
77
14.2k
  static void EnsurePostProcessor() {
78
14.2k
    static const protobuf_mutator::libfuzzer::PostProcessorRegistration<Message> registration(
79
14.2k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
80
14.2k
    (void)registration;
81
14.2k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastHttp2Traits>::EnsurePostProcessor()
Line
Count
Source
77
17.4k
  static void EnsurePostProcessor() {
78
17.4k
    static const protobuf_mutator::libfuzzer::PostProcessorRegistration<Message> registration(
79
17.4k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
80
17.4k
    (void)registration;
81
17.4k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastHttpTraits>::EnsurePostProcessor()
Line
Count
Source
77
16.8k
  static void EnsurePostProcessor() {
78
16.8k
    static const protobuf_mutator::libfuzzer::PostProcessorRegistration<Message> registration(
79
16.8k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
80
16.8k
    (void)registration;
81
16.8k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::ApiTraits>::EnsurePostProcessor()
Line
Count
Source
77
20.1k
  static void EnsurePostProcessor() {
78
20.1k
    static const protobuf_mutator::libfuzzer::PostProcessorRegistration<Message> registration(
79
20.1k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
80
20.1k
    (void)registration;
81
20.1k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastLdapTraits>::EnsurePostProcessor()
Line
Count
Source
77
6.75k
  static void EnsurePostProcessor() {
78
6.75k
    static const protobuf_mutator::libfuzzer::PostProcessorRegistration<Message> registration(
79
6.75k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
80
6.75k
    (void)registration;
81
6.75k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastRtspTraits>::EnsurePostProcessor()
Line
Count
Source
77
7.94k
  static void EnsurePostProcessor() {
78
7.94k
    static const protobuf_mutator::libfuzzer::PostProcessorRegistration<Message> registration(
79
7.94k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
80
7.94k
    (void)registration;
81
7.94k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastMqttTraits>::EnsurePostProcessor()
Line
Count
Source
77
4.28k
  static void EnsurePostProcessor() {
78
4.28k
    static const protobuf_mutator::libfuzzer::PostProcessorRegistration<Message> registration(
79
4.28k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
80
4.28k
    (void)registration;
81
4.28k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastSecureWebSocketTraits>::EnsurePostProcessor()
Line
Count
Source
77
10.0k
  static void EnsurePostProcessor() {
78
10.0k
    static const protobuf_mutator::libfuzzer::PostProcessorRegistration<Message> registration(
79
10.0k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
80
10.0k
    (void)registration;
81
10.0k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::H2ProxyTraits>::EnsurePostProcessor()
Line
Count
Source
77
13.6k
  static void EnsurePostProcessor() {
78
13.6k
    static const protobuf_mutator::libfuzzer::PostProcessorRegistration<Message> registration(
79
13.6k
        [](Message* message, unsigned int /*seed*/) { NormalizeMessage(message); });
80
13.6k
    (void)registration;
81
13.6k
  }
82
83
  /// Remove unknown wire data, normalize through the common runtime model,
84
  /// and lift back into the same generated profile type.
85
  /// @param message Generated profile message to normalize in place.
86
332k
  static void NormalizeMessage(Message* message) {
87
332k
    if (message == nullptr) {
88
0
      return;
89
0
    }
90
91
332k
    message->DiscardUnknownFields();
92
332k
    RuntimeScenario runtime;
93
332k
    Traits::Lower(message, &runtime);
94
332k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
95
311k
      NormalizeScenarioForTarget(&runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
96
311k
    }
97
332k
    message->Clear();
98
332k
    Traits::Lift(&runtime, message);
99
332k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastTelnetTraits>::NormalizeMessage(curl::fuzzer::generated::fast_telnet::FastTelnetScenario*)
Line
Count
Source
86
4.54k
  static void NormalizeMessage(Message* message) {
87
4.54k
    if (message == nullptr) {
88
0
      return;
89
0
    }
90
91
4.54k
    message->DiscardUnknownFields();
92
4.54k
    RuntimeScenario runtime;
93
4.54k
    Traits::Lower(message, &runtime);
94
4.54k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
95
4.54k
      NormalizeScenarioForTarget(&runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
96
4.54k
    }
97
4.54k
    message->Clear();
98
4.54k
    Traits::Lift(&runtime, message);
99
4.54k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastFtpTraits>::NormalizeMessage(curl::fuzzer::generated::fast_ftp::FastFtpScenario*)
Line
Count
Source
86
7.47k
  static void NormalizeMessage(Message* message) {
87
7.47k
    if (message == nullptr) {
88
0
      return;
89
0
    }
90
91
7.47k
    message->DiscardUnknownFields();
92
7.47k
    RuntimeScenario runtime;
93
7.47k
    Traits::Lower(message, &runtime);
94
7.47k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
95
7.47k
      NormalizeScenarioForTarget(&runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
96
7.47k
    }
97
7.47k
    message->Clear();
98
7.47k
    Traits::Lift(&runtime, message);
99
7.47k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastSmtpTraits>::NormalizeMessage(curl::fuzzer::generated::fast_smtp::FastSmtpScenario*)
Line
Count
Source
86
6.02k
  static void NormalizeMessage(Message* message) {
87
6.02k
    if (message == nullptr) {
88
0
      return;
89
0
    }
90
91
6.02k
    message->DiscardUnknownFields();
92
6.02k
    RuntimeScenario runtime;
93
6.02k
    Traits::Lower(message, &runtime);
94
6.02k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
95
6.02k
      NormalizeScenarioForTarget(&runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
96
6.02k
    }
97
6.02k
    message->Clear();
98
6.02k
    Traits::Lift(&runtime, message);
99
6.02k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::HttpsH2Traits>::NormalizeMessage(curl::fuzzer::generated::https_h2::HttpsH2Scenario*)
Line
Count
Source
86
14.7k
  static void NormalizeMessage(Message* message) {
87
14.7k
    if (message == nullptr) {
88
0
      return;
89
0
    }
90
91
14.7k
    message->DiscardUnknownFields();
92
14.7k
    RuntimeScenario runtime;
93
14.7k
    Traits::Lower(message, &runtime);
94
14.7k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
95
14.7k
      NormalizeScenarioForTarget(&runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
96
14.7k
    }
97
14.7k
    message->Clear();
98
14.7k
    Traits::Lift(&runtime, message);
99
14.7k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastTftpTraits>::NormalizeMessage(curl::fuzzer::generated::fast_tftp::FastTftpScenario*)
Line
Count
Source
86
2.38k
  static void NormalizeMessage(Message* message) {
87
2.38k
    if (message == nullptr) {
88
0
      return;
89
0
    }
90
91
2.38k
    message->DiscardUnknownFields();
92
2.38k
    RuntimeScenario runtime;
93
2.38k
    Traits::Lower(message, &runtime);
94
2.38k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
95
2.38k
      NormalizeScenarioForTarget(&runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
96
2.38k
    }
97
2.38k
    message->Clear();
98
2.38k
    Traits::Lift(&runtime, message);
99
2.38k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastWebSocketTraits>::NormalizeMessage(curl::fuzzer::generated::fast_websocket::FastWebSocketScenario*)
Line
Count
Source
86
11.8k
  static void NormalizeMessage(Message* message) {
87
11.8k
    if (message == nullptr) {
88
0
      return;
89
0
    }
90
91
11.8k
    message->DiscardUnknownFields();
92
11.8k
    RuntimeScenario runtime;
93
11.8k
    Traits::Lower(message, &runtime);
94
11.8k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
95
11.8k
      NormalizeScenarioForTarget(&runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
96
11.8k
    }
97
11.8k
    message->Clear();
98
11.8k
    Traits::Lift(&runtime, message);
99
11.8k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastDictTraits>::NormalizeMessage(curl::fuzzer::generated::fast_dict::FastDictScenario*)
Line
Count
Source
86
3.03k
  static void NormalizeMessage(Message* message) {
87
3.03k
    if (message == nullptr) {
88
0
      return;
89
0
    }
90
91
3.03k
    message->DiscardUnknownFields();
92
3.03k
    RuntimeScenario runtime;
93
3.03k
    Traits::Lower(message, &runtime);
94
3.03k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
95
3.03k
      NormalizeScenarioForTarget(&runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
96
3.03k
    }
97
3.03k
    message->Clear();
98
3.03k
    Traits::Lift(&runtime, message);
99
3.03k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::DeepHttpTraits>::NormalizeMessage(curl::fuzzer::generated::deep_http::DeepHttpScenario*)
Line
Count
Source
86
21.7k
  static void NormalizeMessage(Message* message) {
87
21.7k
    if (message == nullptr) {
88
0
      return;
89
0
    }
90
91
21.7k
    message->DiscardUnknownFields();
92
21.7k
    RuntimeScenario runtime;
93
21.7k
    Traits::Lower(message, &runtime);
94
21.7k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
95
21.7k
      NormalizeScenarioForTarget(&runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
96
21.7k
    }
97
21.7k
    message->Clear();
98
21.7k
    Traits::Lift(&runtime, message);
99
21.7k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastIpfsTraits>::NormalizeMessage(curl::fuzzer::generated::fast_ipfs::FastIpfsScenario*)
Line
Count
Source
86
12.1k
  static void NormalizeMessage(Message* message) {
87
12.1k
    if (message == nullptr) {
88
0
      return;
89
0
    }
90
91
12.1k
    message->DiscardUnknownFields();
92
12.1k
    RuntimeScenario runtime;
93
12.1k
    Traits::Lower(message, &runtime);
94
12.1k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
95
12.1k
      NormalizeScenarioForTarget(&runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
96
12.1k
    }
97
12.1k
    message->Clear();
98
12.1k
    Traits::Lift(&runtime, message);
99
12.1k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastHttpsTraits>::NormalizeMessage(curl::fuzzer::generated::fast_https::FastHttpsScenario*)
Line
Count
Source
86
40.6k
  static void NormalizeMessage(Message* message) {
87
40.6k
    if (message == nullptr) {
88
0
      return;
89
0
    }
90
91
40.6k
    message->DiscardUnknownFields();
92
40.6k
    RuntimeScenario runtime;
93
40.6k
    Traits::Lower(message, &runtime);
94
40.6k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
95
40.6k
      NormalizeScenarioForTarget(&runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
96
40.6k
    }
97
40.6k
    message->Clear();
98
40.6k
    Traits::Lift(&runtime, message);
99
40.6k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastImapTraits>::NormalizeMessage(curl::fuzzer::generated::fast_imap::FastImapScenario*)
Line
Count
Source
86
6.48k
  static void NormalizeMessage(Message* message) {
87
6.48k
    if (message == nullptr) {
88
0
      return;
89
0
    }
90
91
6.48k
    message->DiscardUnknownFields();
92
6.48k
    RuntimeScenario runtime;
93
6.48k
    Traits::Lower(message, &runtime);
94
6.48k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
95
6.48k
      NormalizeScenarioForTarget(&runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
96
6.48k
    }
97
6.48k
    message->Clear();
98
6.48k
    Traits::Lift(&runtime, message);
99
6.48k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastGopherTraits>::NormalizeMessage(curl::fuzzer::generated::fast_gopher::FastGopherScenario*)
Line
Count
Source
86
8.96k
  static void NormalizeMessage(Message* message) {
87
8.96k
    if (message == nullptr) {
88
0
      return;
89
0
    }
90
91
8.96k
    message->DiscardUnknownFields();
92
8.96k
    RuntimeScenario runtime;
93
8.96k
    Traits::Lower(message, &runtime);
94
8.96k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
95
8.96k
      NormalizeScenarioForTarget(&runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
96
8.96k
    }
97
8.96k
    message->Clear();
98
8.96k
    Traits::Lift(&runtime, message);
99
8.96k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastFileTraits>::NormalizeMessage(curl::fuzzer::generated::fast_file::FastFileScenario*)
Line
Count
Source
86
4.13k
  static void NormalizeMessage(Message* message) {
87
4.13k
    if (message == nullptr) {
88
0
      return;
89
0
    }
90
91
4.13k
    message->DiscardUnknownFields();
92
4.13k
    RuntimeScenario runtime;
93
4.13k
    Traits::Lower(message, &runtime);
94
4.13k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
95
4.13k
      NormalizeScenarioForTarget(&runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
96
4.13k
    }
97
4.13k
    message->Clear();
98
4.13k
    Traits::Lift(&runtime, message);
99
4.13k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::TimingTraits>::NormalizeMessage(curl::fuzzer::generated::timing::TimingScenario*)
Line
Count
Source
86
16.9k
  static void NormalizeMessage(Message* message) {
87
16.9k
    if (message == nullptr) {
88
0
      return;
89
0
    }
90
91
16.9k
    message->DiscardUnknownFields();
92
16.9k
    RuntimeScenario runtime;
93
16.9k
    Traits::Lower(message, &runtime);
94
16.9k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
95
16.9k
      NormalizeScenarioForTarget(&runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
96
16.9k
    }
97
16.9k
    message->Clear();
98
16.9k
    Traits::Lift(&runtime, message);
99
16.9k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastPop3Traits>::NormalizeMessage(curl::fuzzer::generated::fast_pop3::FastPop3Scenario*)
Line
Count
Source
86
4.14k
  static void NormalizeMessage(Message* message) {
87
4.14k
    if (message == nullptr) {
88
0
      return;
89
0
    }
90
91
4.14k
    message->DiscardUnknownFields();
92
4.14k
    RuntimeScenario runtime;
93
4.14k
    Traits::Lower(message, &runtime);
94
4.14k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
95
4.14k
      NormalizeScenarioForTarget(&runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
96
4.14k
    }
97
4.14k
    message->Clear();
98
4.14k
    Traits::Lift(&runtime, message);
99
4.14k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::MultiTraits>::NormalizeMessage(curl::fuzzer::generated::multi::MultiScenario*)
Line
Count
Source
86
18.2k
  static void NormalizeMessage(Message* message) {
87
18.2k
    if (message == nullptr) {
88
0
      return;
89
0
    }
90
91
18.2k
    message->DiscardUnknownFields();
92
18.2k
    RuntimeScenario runtime;
93
18.2k
    Traits::Lower(message, &runtime);
94
18.2k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
95
18.2k
      NormalizeScenarioForTarget(&runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
96
18.2k
    }
97
18.2k
    message->Clear();
98
18.2k
    Traits::Lift(&runtime, message);
99
18.2k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastHttp3Traits>::NormalizeMessage(curl::fuzzer::generated::fast_http3::FastHttp3Scenario*)
Line
Count
Source
86
7.66k
  static void NormalizeMessage(Message* message) {
87
7.66k
    if (message == nullptr) {
88
0
      return;
89
0
    }
90
91
7.66k
    message->DiscardUnknownFields();
92
7.66k
    RuntimeScenario runtime;
93
7.66k
    Traits::Lower(message, &runtime);
94
7.66k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
95
7.66k
      NormalizeScenarioForTarget(&runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
96
7.66k
    }
97
7.66k
    message->Clear();
98
7.66k
    Traits::Lift(&runtime, message);
99
7.66k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::CompatibilityTraits>::NormalizeMessage(curl::fuzzer::generated::compatibility::CompatibilityScenario*)
Line
Count
Source
86
20.6k
  static void NormalizeMessage(Message* message) {
87
20.6k
    if (message == nullptr) {
88
0
      return;
89
0
    }
90
91
20.6k
    message->DiscardUnknownFields();
92
20.6k
    RuntimeScenario runtime;
93
20.6k
    Traits::Lower(message, &runtime);
94
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
95
      NormalizeScenarioForTarget(&runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
96
    }
97
20.6k
    message->Clear();
98
20.6k
    Traits::Lift(&runtime, message);
99
20.6k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::ResolverTraits>::NormalizeMessage(curl::fuzzer::generated::resolver::ResolverScenario*)
Line
Count
Source
86
10.4k
  static void NormalizeMessage(Message* message) {
87
10.4k
    if (message == nullptr) {
88
0
      return;
89
0
    }
90
91
10.4k
    message->DiscardUnknownFields();
92
10.4k
    RuntimeScenario runtime;
93
10.4k
    Traits::Lower(message, &runtime);
94
10.4k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
95
10.4k
      NormalizeScenarioForTarget(&runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
96
10.4k
    }
97
10.4k
    message->Clear();
98
10.4k
    Traits::Lift(&runtime, message);
99
10.4k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::ProxyTransportTraits>::NormalizeMessage(curl::fuzzer::generated::proxy_transport::ProxyTransportScenario*)
Line
Count
Source
86
14.1k
  static void NormalizeMessage(Message* message) {
87
14.1k
    if (message == nullptr) {
88
0
      return;
89
0
    }
90
91
14.1k
    message->DiscardUnknownFields();
92
14.1k
    RuntimeScenario runtime;
93
14.1k
    Traits::Lower(message, &runtime);
94
14.1k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
95
14.1k
      NormalizeScenarioForTarget(&runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
96
14.1k
    }
97
14.1k
    message->Clear();
98
14.1k
    Traits::Lift(&runtime, message);
99
14.1k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastHttp2Traits>::NormalizeMessage(curl::fuzzer::generated::fast_http2::FastHttp2Scenario*)
Line
Count
Source
86
17.0k
  static void NormalizeMessage(Message* message) {
87
17.0k
    if (message == nullptr) {
88
0
      return;
89
0
    }
90
91
17.0k
    message->DiscardUnknownFields();
92
17.0k
    RuntimeScenario runtime;
93
17.0k
    Traits::Lower(message, &runtime);
94
17.0k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
95
17.0k
      NormalizeScenarioForTarget(&runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
96
17.0k
    }
97
17.0k
    message->Clear();
98
17.0k
    Traits::Lift(&runtime, message);
99
17.0k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastHttpTraits>::NormalizeMessage(curl::fuzzer::generated::fast_http::FastHttpScenario*)
Line
Count
Source
86
16.8k
  static void NormalizeMessage(Message* message) {
87
16.8k
    if (message == nullptr) {
88
0
      return;
89
0
    }
90
91
16.8k
    message->DiscardUnknownFields();
92
16.8k
    RuntimeScenario runtime;
93
16.8k
    Traits::Lower(message, &runtime);
94
16.8k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
95
16.8k
      NormalizeScenarioForTarget(&runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
96
16.8k
    }
97
16.8k
    message->Clear();
98
16.8k
    Traits::Lift(&runtime, message);
99
16.8k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::ApiTraits>::NormalizeMessage(curl::fuzzer::generated::api::ApiScenario*)
Line
Count
Source
86
19.9k
  static void NormalizeMessage(Message* message) {
87
19.9k
    if (message == nullptr) {
88
0
      return;
89
0
    }
90
91
19.9k
    message->DiscardUnknownFields();
92
19.9k
    RuntimeScenario runtime;
93
19.9k
    Traits::Lower(message, &runtime);
94
19.9k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
95
19.9k
      NormalizeScenarioForTarget(&runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
96
19.9k
    }
97
19.9k
    message->Clear();
98
19.9k
    Traits::Lift(&runtime, message);
99
19.9k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastLdapTraits>::NormalizeMessage(curl::fuzzer::generated::fast_ldap::FastLdapScenario*)
Line
Count
Source
86
6.69k
  static void NormalizeMessage(Message* message) {
87
6.69k
    if (message == nullptr) {
88
0
      return;
89
0
    }
90
91
6.69k
    message->DiscardUnknownFields();
92
6.69k
    RuntimeScenario runtime;
93
6.69k
    Traits::Lower(message, &runtime);
94
6.69k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
95
6.69k
      NormalizeScenarioForTarget(&runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
96
6.69k
    }
97
6.69k
    message->Clear();
98
6.69k
    Traits::Lift(&runtime, message);
99
6.69k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastRtspTraits>::NormalizeMessage(curl::fuzzer::generated::fast_rtsp::FastRtspScenario*)
Line
Count
Source
86
7.85k
  static void NormalizeMessage(Message* message) {
87
7.85k
    if (message == nullptr) {
88
0
      return;
89
0
    }
90
91
7.85k
    message->DiscardUnknownFields();
92
7.85k
    RuntimeScenario runtime;
93
7.85k
    Traits::Lower(message, &runtime);
94
7.85k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
95
7.85k
      NormalizeScenarioForTarget(&runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
96
7.85k
    }
97
7.85k
    message->Clear();
98
7.85k
    Traits::Lift(&runtime, message);
99
7.85k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastMqttTraits>::NormalizeMessage(curl::fuzzer::generated::fast_mqtt::FastMqttScenario*)
Line
Count
Source
86
4.21k
  static void NormalizeMessage(Message* message) {
87
4.21k
    if (message == nullptr) {
88
0
      return;
89
0
    }
90
91
4.21k
    message->DiscardUnknownFields();
92
4.21k
    RuntimeScenario runtime;
93
4.21k
    Traits::Lower(message, &runtime);
94
4.21k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
95
4.21k
      NormalizeScenarioForTarget(&runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
96
4.21k
    }
97
4.21k
    message->Clear();
98
4.21k
    Traits::Lift(&runtime, message);
99
4.21k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastSecureWebSocketTraits>::NormalizeMessage(curl::fuzzer::generated::fast_secure_websocket::FastSecureWebSocketScenario*)
Line
Count
Source
86
9.88k
  static void NormalizeMessage(Message* message) {
87
9.88k
    if (message == nullptr) {
88
0
      return;
89
0
    }
90
91
9.88k
    message->DiscardUnknownFields();
92
9.88k
    RuntimeScenario runtime;
93
9.88k
    Traits::Lower(message, &runtime);
94
9.88k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
95
9.88k
      NormalizeScenarioForTarget(&runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
96
9.88k
    }
97
9.88k
    message->Clear();
98
9.88k
    Traits::Lift(&runtime, message);
99
9.88k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::H2ProxyTraits>::NormalizeMessage(curl::fuzzer::generated::h2_proxy::H2ProxyScenario*)
Line
Count
Source
86
13.5k
  static void NormalizeMessage(Message* message) {
87
13.5k
    if (message == nullptr) {
88
0
      return;
89
0
    }
90
91
13.5k
    message->DiscardUnknownFields();
92
13.5k
    RuntimeScenario runtime;
93
13.5k
    Traits::Lower(message, &runtime);
94
13.5k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
95
13.5k
      NormalizeScenarioForTarget(&runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
96
13.5k
    }
97
13.5k
    message->Clear();
98
13.5k
    Traits::Lift(&runtime, message);
99
13.5k
  }
100
101
  /// Mutate a binary profile message and retain its exact type in LPM's cache.
102
  /// @param data Serialized profile message buffer to mutate in place.
103
  /// @param size Number of input bytes currently stored in `data`.
104
  /// @param max_size Capacity of `data` available for the mutated message.
105
  /// @param seed Deterministic mutation seed supplied by libFuzzer.
106
  /// @return Number of serialized bytes in the mutated message.
107
1
  static std::size_t CustomMutator(std::uint8_t* data, std::size_t size, std::size_t max_size, unsigned int seed) {
108
1
    EnsurePostProcessor();
109
1
    Message message;
110
1
    return protobuf_mutator::libfuzzer::CustomProtoMutator(true, data, size, max_size, seed, &message);
111
1
  }
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastTelnetTraits>::CustomMutator(unsigned char*, unsigned long, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastFtpTraits>::CustomMutator(unsigned char*, unsigned long, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastSmtpTraits>::CustomMutator(unsigned char*, unsigned long, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::HttpsH2Traits>::CustomMutator(unsigned char*, unsigned long, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastTftpTraits>::CustomMutator(unsigned char*, unsigned long, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastWebSocketTraits>::CustomMutator(unsigned char*, unsigned long, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastDictTraits>::CustomMutator(unsigned char*, unsigned long, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::DeepHttpTraits>::CustomMutator(unsigned char*, unsigned long, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastIpfsTraits>::CustomMutator(unsigned char*, unsigned long, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastHttpsTraits>::CustomMutator(unsigned char*, unsigned long, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastImapTraits>::CustomMutator(unsigned char*, unsigned long, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastGopherTraits>::CustomMutator(unsigned char*, unsigned long, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastFileTraits>::CustomMutator(unsigned char*, unsigned long, unsigned long, unsigned int)
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::TimingTraits>::CustomMutator(unsigned char*, unsigned long, unsigned long, unsigned int)
Line
Count
Source
107
1
  static std::size_t CustomMutator(std::uint8_t* data, std::size_t size, std::size_t max_size, unsigned int seed) {
108
1
    EnsurePostProcessor();
109
1
    Message message;
110
1
    return protobuf_mutator::libfuzzer::CustomProtoMutator(true, data, size, max_size, seed, &message);
111
1
  }
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastPop3Traits>::CustomMutator(unsigned char*, unsigned long, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::MultiTraits>::CustomMutator(unsigned char*, unsigned long, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastHttp3Traits>::CustomMutator(unsigned char*, unsigned long, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::CompatibilityTraits>::CustomMutator(unsigned char*, unsigned long, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::ResolverTraits>::CustomMutator(unsigned char*, unsigned long, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::ProxyTransportTraits>::CustomMutator(unsigned char*, unsigned long, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastHttp2Traits>::CustomMutator(unsigned char*, unsigned long, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastHttpTraits>::CustomMutator(unsigned char*, unsigned long, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::ApiTraits>::CustomMutator(unsigned char*, unsigned long, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastLdapTraits>::CustomMutator(unsigned char*, unsigned long, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastRtspTraits>::CustomMutator(unsigned char*, unsigned long, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastMqttTraits>::CustomMutator(unsigned char*, unsigned long, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastSecureWebSocketTraits>::CustomMutator(unsigned char*, unsigned long, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::H2ProxyTraits>::CustomMutator(unsigned char*, unsigned long, unsigned long, unsigned int)
112
113
  /// Cross two binary profile messages using the same type as mutation/load.
114
  /// @param data1 Serialized first parent message.
115
  /// @param size1 Number of bytes in `data1`.
116
  /// @param data2 Serialized second parent message.
117
  /// @param size2 Number of bytes in `data2`.
118
  /// @param out Destination buffer for the crossed message.
119
  /// @param max_out_size Capacity of `out`.
120
  /// @param seed Deterministic crossover seed supplied by libFuzzer.
121
  /// @return Number of serialized bytes written to `out`.
122
  static std::size_t CustomCrossOver(const std::uint8_t* data1, std::size_t size1, const std::uint8_t* data2,
123
                                     std::size_t size2, std::uint8_t* out, std::size_t max_out_size,
124
1
                                     unsigned int seed) {
125
1
    EnsurePostProcessor();
126
1
    Message message1;
127
1
    Message message2;
128
1
    return protobuf_mutator::libfuzzer::CustomProtoCrossOver(true, data1, size1, data2, size2, out, max_out_size, seed,
129
1
                                                             &message1, &message2);
130
1
  }
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastTelnetTraits>::CustomCrossOver(unsigned char const*, unsigned long, unsigned char const*, unsigned long, unsigned char*, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastFtpTraits>::CustomCrossOver(unsigned char const*, unsigned long, unsigned char const*, unsigned long, unsigned char*, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastSmtpTraits>::CustomCrossOver(unsigned char const*, unsigned long, unsigned char const*, unsigned long, unsigned char*, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::HttpsH2Traits>::CustomCrossOver(unsigned char const*, unsigned long, unsigned char const*, unsigned long, unsigned char*, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastTftpTraits>::CustomCrossOver(unsigned char const*, unsigned long, unsigned char const*, unsigned long, unsigned char*, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastWebSocketTraits>::CustomCrossOver(unsigned char const*, unsigned long, unsigned char const*, unsigned long, unsigned char*, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastDictTraits>::CustomCrossOver(unsigned char const*, unsigned long, unsigned char const*, unsigned long, unsigned char*, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::DeepHttpTraits>::CustomCrossOver(unsigned char const*, unsigned long, unsigned char const*, unsigned long, unsigned char*, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastIpfsTraits>::CustomCrossOver(unsigned char const*, unsigned long, unsigned char const*, unsigned long, unsigned char*, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastHttpsTraits>::CustomCrossOver(unsigned char const*, unsigned long, unsigned char const*, unsigned long, unsigned char*, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastImapTraits>::CustomCrossOver(unsigned char const*, unsigned long, unsigned char const*, unsigned long, unsigned char*, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastGopherTraits>::CustomCrossOver(unsigned char const*, unsigned long, unsigned char const*, unsigned long, unsigned char*, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastFileTraits>::CustomCrossOver(unsigned char const*, unsigned long, unsigned char const*, unsigned long, unsigned char*, unsigned long, unsigned int)
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::TimingTraits>::CustomCrossOver(unsigned char const*, unsigned long, unsigned char const*, unsigned long, unsigned char*, unsigned long, unsigned int)
Line
Count
Source
124
1
                                     unsigned int seed) {
125
1
    EnsurePostProcessor();
126
1
    Message message1;
127
1
    Message message2;
128
1
    return protobuf_mutator::libfuzzer::CustomProtoCrossOver(true, data1, size1, data2, size2, out, max_out_size, seed,
129
1
                                                             &message1, &message2);
130
1
  }
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastPop3Traits>::CustomCrossOver(unsigned char const*, unsigned long, unsigned char const*, unsigned long, unsigned char*, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::MultiTraits>::CustomCrossOver(unsigned char const*, unsigned long, unsigned char const*, unsigned long, unsigned char*, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastHttp3Traits>::CustomCrossOver(unsigned char const*, unsigned long, unsigned char const*, unsigned long, unsigned char*, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::CompatibilityTraits>::CustomCrossOver(unsigned char const*, unsigned long, unsigned char const*, unsigned long, unsigned char*, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::ResolverTraits>::CustomCrossOver(unsigned char const*, unsigned long, unsigned char const*, unsigned long, unsigned char*, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::ProxyTransportTraits>::CustomCrossOver(unsigned char const*, unsigned long, unsigned char const*, unsigned long, unsigned char*, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastHttp2Traits>::CustomCrossOver(unsigned char const*, unsigned long, unsigned char const*, unsigned long, unsigned char*, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastHttpTraits>::CustomCrossOver(unsigned char const*, unsigned long, unsigned char const*, unsigned long, unsigned char*, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::ApiTraits>::CustomCrossOver(unsigned char const*, unsigned long, unsigned char const*, unsigned long, unsigned char*, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastLdapTraits>::CustomCrossOver(unsigned char const*, unsigned long, unsigned char const*, unsigned long, unsigned char*, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastRtspTraits>::CustomCrossOver(unsigned char const*, unsigned long, unsigned char const*, unsigned long, unsigned char*, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastMqttTraits>::CustomCrossOver(unsigned char const*, unsigned long, unsigned char const*, unsigned long, unsigned char*, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastSecureWebSocketTraits>::CustomCrossOver(unsigned char const*, unsigned long, unsigned char const*, unsigned long, unsigned char*, unsigned long, unsigned int)
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::H2ProxyTraits>::CustomCrossOver(unsigned char const*, unsigned long, unsigned char const*, unsigned long, unsigned char*, unsigned long, unsigned int)
131
132
  /// Load one binary profile message and transfer it into owned runtime state.
133
  ///
134
  /// This deliberately uses LPM's ordinary input unchanged. On a cache hit,
135
  /// the cached Message is the same concrete type used above; on a parse path,
136
  /// LPM invokes the registered postprocessor before this direct lowering.
137
  /// @param data Serialized profile message bytes.
138
  /// @param size Number of bytes available at `data`.
139
  /// @param runtime Destination for the owned, lowered runtime Scenario.
140
  /// @return Whether the input loaded and lowered successfully.
141
337k
  static bool LoadAndLower(const std::uint8_t* data, std::size_t size, RuntimeScenario* runtime) {
142
337k
    if (runtime == nullptr) {
143
0
      return false;
144
0
    }
145
146
337k
    EnsurePostProcessor();
147
337k
    Message message;
148
337k
    if (!protobuf_mutator::libfuzzer::LoadProtoInput(true, data, size, &message)) {
149
4.91k
      return false;
150
4.91k
    }
151
152
    // Mutated inputs have already passed the postprocessor before entering
153
    // LPM's cache. Parsed inputs pass it in Fix(). Discarding once more is
154
    // harmless and makes the lowering boundary fail closed for either path.
155
332k
    message.DiscardUnknownFields();
156
332k
    runtime->Clear();
157
332k
    Traits::Lower(&message, runtime);
158
    // A projected profile root intentionally cannot carry policy-owned state
159
    // such as a fixed scheme. The postprocessor normalized that state before
160
    // Lift, but Lift necessarily omitted it; restore it at the final lowering
161
    // boundary instead of assuming the serialized root can round-trip it.
162
332k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
163
311k
      NormalizeScenarioForTarget(runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
164
311k
    }
165
332k
    return true;
166
337k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastTelnetTraits>::LoadAndLower(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
141
4.61k
  static bool LoadAndLower(const std::uint8_t* data, std::size_t size, RuntimeScenario* runtime) {
142
4.61k
    if (runtime == nullptr) {
143
0
      return false;
144
0
    }
145
146
4.61k
    EnsurePostProcessor();
147
4.61k
    Message message;
148
4.61k
    if (!protobuf_mutator::libfuzzer::LoadProtoInput(true, data, size, &message)) {
149
69
      return false;
150
69
    }
151
152
    // Mutated inputs have already passed the postprocessor before entering
153
    // LPM's cache. Parsed inputs pass it in Fix(). Discarding once more is
154
    // harmless and makes the lowering boundary fail closed for either path.
155
4.54k
    message.DiscardUnknownFields();
156
4.54k
    runtime->Clear();
157
4.54k
    Traits::Lower(&message, runtime);
158
    // A projected profile root intentionally cannot carry policy-owned state
159
    // such as a fixed scheme. The postprocessor normalized that state before
160
    // Lift, but Lift necessarily omitted it; restore it at the final lowering
161
    // boundary instead of assuming the serialized root can round-trip it.
162
4.54k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
163
4.54k
      NormalizeScenarioForTarget(runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
164
4.54k
    }
165
4.54k
    return true;
166
4.61k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastFtpTraits>::LoadAndLower(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
141
7.56k
  static bool LoadAndLower(const std::uint8_t* data, std::size_t size, RuntimeScenario* runtime) {
142
7.56k
    if (runtime == nullptr) {
143
0
      return false;
144
0
    }
145
146
7.56k
    EnsurePostProcessor();
147
7.56k
    Message message;
148
7.56k
    if (!protobuf_mutator::libfuzzer::LoadProtoInput(true, data, size, &message)) {
149
91
      return false;
150
91
    }
151
152
    // Mutated inputs have already passed the postprocessor before entering
153
    // LPM's cache. Parsed inputs pass it in Fix(). Discarding once more is
154
    // harmless and makes the lowering boundary fail closed for either path.
155
7.47k
    message.DiscardUnknownFields();
156
7.47k
    runtime->Clear();
157
7.47k
    Traits::Lower(&message, runtime);
158
    // A projected profile root intentionally cannot carry policy-owned state
159
    // such as a fixed scheme. The postprocessor normalized that state before
160
    // Lift, but Lift necessarily omitted it; restore it at the final lowering
161
    // boundary instead of assuming the serialized root can round-trip it.
162
7.47k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
163
7.47k
      NormalizeScenarioForTarget(runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
164
7.47k
    }
165
7.47k
    return true;
166
7.56k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastSmtpTraits>::LoadAndLower(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
141
6.17k
  static bool LoadAndLower(const std::uint8_t* data, std::size_t size, RuntimeScenario* runtime) {
142
6.17k
    if (runtime == nullptr) {
143
0
      return false;
144
0
    }
145
146
6.17k
    EnsurePostProcessor();
147
6.17k
    Message message;
148
6.17k
    if (!protobuf_mutator::libfuzzer::LoadProtoInput(true, data, size, &message)) {
149
149
      return false;
150
149
    }
151
152
    // Mutated inputs have already passed the postprocessor before entering
153
    // LPM's cache. Parsed inputs pass it in Fix(). Discarding once more is
154
    // harmless and makes the lowering boundary fail closed for either path.
155
6.02k
    message.DiscardUnknownFields();
156
6.02k
    runtime->Clear();
157
6.02k
    Traits::Lower(&message, runtime);
158
    // A projected profile root intentionally cannot carry policy-owned state
159
    // such as a fixed scheme. The postprocessor normalized that state before
160
    // Lift, but Lift necessarily omitted it; restore it at the final lowering
161
    // boundary instead of assuming the serialized root can round-trip it.
162
6.02k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
163
6.02k
      NormalizeScenarioForTarget(runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
164
6.02k
    }
165
6.02k
    return true;
166
6.17k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::HttpsH2Traits>::LoadAndLower(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
141
15.1k
  static bool LoadAndLower(const std::uint8_t* data, std::size_t size, RuntimeScenario* runtime) {
142
15.1k
    if (runtime == nullptr) {
143
0
      return false;
144
0
    }
145
146
15.1k
    EnsurePostProcessor();
147
15.1k
    Message message;
148
15.1k
    if (!protobuf_mutator::libfuzzer::LoadProtoInput(true, data, size, &message)) {
149
369
      return false;
150
369
    }
151
152
    // Mutated inputs have already passed the postprocessor before entering
153
    // LPM's cache. Parsed inputs pass it in Fix(). Discarding once more is
154
    // harmless and makes the lowering boundary fail closed for either path.
155
14.7k
    message.DiscardUnknownFields();
156
14.7k
    runtime->Clear();
157
14.7k
    Traits::Lower(&message, runtime);
158
    // A projected profile root intentionally cannot carry policy-owned state
159
    // such as a fixed scheme. The postprocessor normalized that state before
160
    // Lift, but Lift necessarily omitted it; restore it at the final lowering
161
    // boundary instead of assuming the serialized root can round-trip it.
162
14.7k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
163
14.7k
      NormalizeScenarioForTarget(runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
164
14.7k
    }
165
14.7k
    return true;
166
15.1k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastTftpTraits>::LoadAndLower(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
141
2.44k
  static bool LoadAndLower(const std::uint8_t* data, std::size_t size, RuntimeScenario* runtime) {
142
2.44k
    if (runtime == nullptr) {
143
0
      return false;
144
0
    }
145
146
2.44k
    EnsurePostProcessor();
147
2.44k
    Message message;
148
2.44k
    if (!protobuf_mutator::libfuzzer::LoadProtoInput(true, data, size, &message)) {
149
59
      return false;
150
59
    }
151
152
    // Mutated inputs have already passed the postprocessor before entering
153
    // LPM's cache. Parsed inputs pass it in Fix(). Discarding once more is
154
    // harmless and makes the lowering boundary fail closed for either path.
155
2.38k
    message.DiscardUnknownFields();
156
2.38k
    runtime->Clear();
157
2.38k
    Traits::Lower(&message, runtime);
158
    // A projected profile root intentionally cannot carry policy-owned state
159
    // such as a fixed scheme. The postprocessor normalized that state before
160
    // Lift, but Lift necessarily omitted it; restore it at the final lowering
161
    // boundary instead of assuming the serialized root can round-trip it.
162
2.38k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
163
2.38k
      NormalizeScenarioForTarget(runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
164
2.38k
    }
165
2.38k
    return true;
166
2.44k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastWebSocketTraits>::LoadAndLower(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
141
11.9k
  static bool LoadAndLower(const std::uint8_t* data, std::size_t size, RuntimeScenario* runtime) {
142
11.9k
    if (runtime == nullptr) {
143
0
      return false;
144
0
    }
145
146
11.9k
    EnsurePostProcessor();
147
11.9k
    Message message;
148
11.9k
    if (!protobuf_mutator::libfuzzer::LoadProtoInput(true, data, size, &message)) {
149
128
      return false;
150
128
    }
151
152
    // Mutated inputs have already passed the postprocessor before entering
153
    // LPM's cache. Parsed inputs pass it in Fix(). Discarding once more is
154
    // harmless and makes the lowering boundary fail closed for either path.
155
11.8k
    message.DiscardUnknownFields();
156
11.8k
    runtime->Clear();
157
11.8k
    Traits::Lower(&message, runtime);
158
    // A projected profile root intentionally cannot carry policy-owned state
159
    // such as a fixed scheme. The postprocessor normalized that state before
160
    // Lift, but Lift necessarily omitted it; restore it at the final lowering
161
    // boundary instead of assuming the serialized root can round-trip it.
162
11.8k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
163
11.8k
      NormalizeScenarioForTarget(runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
164
11.8k
    }
165
11.8k
    return true;
166
11.9k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastDictTraits>::LoadAndLower(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
141
3.11k
  static bool LoadAndLower(const std::uint8_t* data, std::size_t size, RuntimeScenario* runtime) {
142
3.11k
    if (runtime == nullptr) {
143
0
      return false;
144
0
    }
145
146
3.11k
    EnsurePostProcessor();
147
3.11k
    Message message;
148
3.11k
    if (!protobuf_mutator::libfuzzer::LoadProtoInput(true, data, size, &message)) {
149
75
      return false;
150
75
    }
151
152
    // Mutated inputs have already passed the postprocessor before entering
153
    // LPM's cache. Parsed inputs pass it in Fix(). Discarding once more is
154
    // harmless and makes the lowering boundary fail closed for either path.
155
3.03k
    message.DiscardUnknownFields();
156
3.03k
    runtime->Clear();
157
3.03k
    Traits::Lower(&message, runtime);
158
    // A projected profile root intentionally cannot carry policy-owned state
159
    // such as a fixed scheme. The postprocessor normalized that state before
160
    // Lift, but Lift necessarily omitted it; restore it at the final lowering
161
    // boundary instead of assuming the serialized root can round-trip it.
162
3.03k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
163
3.03k
      NormalizeScenarioForTarget(runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
164
3.03k
    }
165
3.03k
    return true;
166
3.11k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::DeepHttpTraits>::LoadAndLower(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
141
21.9k
  static bool LoadAndLower(const std::uint8_t* data, std::size_t size, RuntimeScenario* runtime) {
142
21.9k
    if (runtime == nullptr) {
143
0
      return false;
144
0
    }
145
146
21.9k
    EnsurePostProcessor();
147
21.9k
    Message message;
148
21.9k
    if (!protobuf_mutator::libfuzzer::LoadProtoInput(true, data, size, &message)) {
149
201
      return false;
150
201
    }
151
152
    // Mutated inputs have already passed the postprocessor before entering
153
    // LPM's cache. Parsed inputs pass it in Fix(). Discarding once more is
154
    // harmless and makes the lowering boundary fail closed for either path.
155
21.7k
    message.DiscardUnknownFields();
156
21.7k
    runtime->Clear();
157
21.7k
    Traits::Lower(&message, runtime);
158
    // A projected profile root intentionally cannot carry policy-owned state
159
    // such as a fixed scheme. The postprocessor normalized that state before
160
    // Lift, but Lift necessarily omitted it; restore it at the final lowering
161
    // boundary instead of assuming the serialized root can round-trip it.
162
21.7k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
163
21.7k
      NormalizeScenarioForTarget(runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
164
21.7k
    }
165
21.7k
    return true;
166
21.9k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastIpfsTraits>::LoadAndLower(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
141
12.1k
  static bool LoadAndLower(const std::uint8_t* data, std::size_t size, RuntimeScenario* runtime) {
142
12.1k
    if (runtime == nullptr) {
143
0
      return false;
144
0
    }
145
146
12.1k
    EnsurePostProcessor();
147
12.1k
    Message message;
148
12.1k
    if (!protobuf_mutator::libfuzzer::LoadProtoInput(true, data, size, &message)) {
149
59
      return false;
150
59
    }
151
152
    // Mutated inputs have already passed the postprocessor before entering
153
    // LPM's cache. Parsed inputs pass it in Fix(). Discarding once more is
154
    // harmless and makes the lowering boundary fail closed for either path.
155
12.1k
    message.DiscardUnknownFields();
156
12.1k
    runtime->Clear();
157
12.1k
    Traits::Lower(&message, runtime);
158
    // A projected profile root intentionally cannot carry policy-owned state
159
    // such as a fixed scheme. The postprocessor normalized that state before
160
    // Lift, but Lift necessarily omitted it; restore it at the final lowering
161
    // boundary instead of assuming the serialized root can round-trip it.
162
12.1k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
163
12.1k
      NormalizeScenarioForTarget(runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
164
12.1k
    }
165
12.1k
    return true;
166
12.1k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastHttpsTraits>::LoadAndLower(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
141
41.3k
  static bool LoadAndLower(const std::uint8_t* data, std::size_t size, RuntimeScenario* runtime) {
142
41.3k
    if (runtime == nullptr) {
143
0
      return false;
144
0
    }
145
146
41.3k
    EnsurePostProcessor();
147
41.3k
    Message message;
148
41.3k
    if (!protobuf_mutator::libfuzzer::LoadProtoInput(true, data, size, &message)) {
149
638
      return false;
150
638
    }
151
152
    // Mutated inputs have already passed the postprocessor before entering
153
    // LPM's cache. Parsed inputs pass it in Fix(). Discarding once more is
154
    // harmless and makes the lowering boundary fail closed for either path.
155
40.6k
    message.DiscardUnknownFields();
156
40.6k
    runtime->Clear();
157
40.6k
    Traits::Lower(&message, runtime);
158
    // A projected profile root intentionally cannot carry policy-owned state
159
    // such as a fixed scheme. The postprocessor normalized that state before
160
    // Lift, but Lift necessarily omitted it; restore it at the final lowering
161
    // boundary instead of assuming the serialized root can round-trip it.
162
40.6k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
163
40.6k
      NormalizeScenarioForTarget(runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
164
40.6k
    }
165
40.6k
    return true;
166
41.3k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastImapTraits>::LoadAndLower(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
141
6.62k
  static bool LoadAndLower(const std::uint8_t* data, std::size_t size, RuntimeScenario* runtime) {
142
6.62k
    if (runtime == nullptr) {
143
0
      return false;
144
0
    }
145
146
6.62k
    EnsurePostProcessor();
147
6.62k
    Message message;
148
6.62k
    if (!protobuf_mutator::libfuzzer::LoadProtoInput(true, data, size, &message)) {
149
148
      return false;
150
148
    }
151
152
    // Mutated inputs have already passed the postprocessor before entering
153
    // LPM's cache. Parsed inputs pass it in Fix(). Discarding once more is
154
    // harmless and makes the lowering boundary fail closed for either path.
155
6.48k
    message.DiscardUnknownFields();
156
6.48k
    runtime->Clear();
157
6.48k
    Traits::Lower(&message, runtime);
158
    // A projected profile root intentionally cannot carry policy-owned state
159
    // such as a fixed scheme. The postprocessor normalized that state before
160
    // Lift, but Lift necessarily omitted it; restore it at the final lowering
161
    // boundary instead of assuming the serialized root can round-trip it.
162
6.48k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
163
6.48k
      NormalizeScenarioForTarget(runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
164
6.48k
    }
165
6.48k
    return true;
166
6.62k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastGopherTraits>::LoadAndLower(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
141
9.06k
  static bool LoadAndLower(const std::uint8_t* data, std::size_t size, RuntimeScenario* runtime) {
142
9.06k
    if (runtime == nullptr) {
143
0
      return false;
144
0
    }
145
146
9.06k
    EnsurePostProcessor();
147
9.06k
    Message message;
148
9.06k
    if (!protobuf_mutator::libfuzzer::LoadProtoInput(true, data, size, &message)) {
149
98
      return false;
150
98
    }
151
152
    // Mutated inputs have already passed the postprocessor before entering
153
    // LPM's cache. Parsed inputs pass it in Fix(). Discarding once more is
154
    // harmless and makes the lowering boundary fail closed for either path.
155
8.96k
    message.DiscardUnknownFields();
156
8.96k
    runtime->Clear();
157
8.96k
    Traits::Lower(&message, runtime);
158
    // A projected profile root intentionally cannot carry policy-owned state
159
    // such as a fixed scheme. The postprocessor normalized that state before
160
    // Lift, but Lift necessarily omitted it; restore it at the final lowering
161
    // boundary instead of assuming the serialized root can round-trip it.
162
8.96k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
163
8.96k
      NormalizeScenarioForTarget(runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
164
8.96k
    }
165
8.96k
    return true;
166
9.06k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastFileTraits>::LoadAndLower(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
141
4.17k
  static bool LoadAndLower(const std::uint8_t* data, std::size_t size, RuntimeScenario* runtime) {
142
4.17k
    if (runtime == nullptr) {
143
0
      return false;
144
0
    }
145
146
4.17k
    EnsurePostProcessor();
147
4.17k
    Message message;
148
4.17k
    if (!protobuf_mutator::libfuzzer::LoadProtoInput(true, data, size, &message)) {
149
39
      return false;
150
39
    }
151
152
    // Mutated inputs have already passed the postprocessor before entering
153
    // LPM's cache. Parsed inputs pass it in Fix(). Discarding once more is
154
    // harmless and makes the lowering boundary fail closed for either path.
155
4.13k
    message.DiscardUnknownFields();
156
4.13k
    runtime->Clear();
157
4.13k
    Traits::Lower(&message, runtime);
158
    // A projected profile root intentionally cannot carry policy-owned state
159
    // such as a fixed scheme. The postprocessor normalized that state before
160
    // Lift, but Lift necessarily omitted it; restore it at the final lowering
161
    // boundary instead of assuming the serialized root can round-trip it.
162
4.13k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
163
4.13k
      NormalizeScenarioForTarget(runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
164
4.13k
    }
165
4.13k
    return true;
166
4.17k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::TimingTraits>::LoadAndLower(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
141
17.1k
  static bool LoadAndLower(const std::uint8_t* data, std::size_t size, RuntimeScenario* runtime) {
142
17.1k
    if (runtime == nullptr) {
143
0
      return false;
144
0
    }
145
146
17.1k
    EnsurePostProcessor();
147
17.1k
    Message message;
148
17.1k
    if (!protobuf_mutator::libfuzzer::LoadProtoInput(true, data, size, &message)) {
149
218
      return false;
150
218
    }
151
152
    // Mutated inputs have already passed the postprocessor before entering
153
    // LPM's cache. Parsed inputs pass it in Fix(). Discarding once more is
154
    // harmless and makes the lowering boundary fail closed for either path.
155
16.9k
    message.DiscardUnknownFields();
156
16.9k
    runtime->Clear();
157
16.9k
    Traits::Lower(&message, runtime);
158
    // A projected profile root intentionally cannot carry policy-owned state
159
    // such as a fixed scheme. The postprocessor normalized that state before
160
    // Lift, but Lift necessarily omitted it; restore it at the final lowering
161
    // boundary instead of assuming the serialized root can round-trip it.
162
16.9k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
163
16.9k
      NormalizeScenarioForTarget(runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
164
16.9k
    }
165
16.9k
    return true;
166
17.1k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastPop3Traits>::LoadAndLower(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
141
4.21k
  static bool LoadAndLower(const std::uint8_t* data, std::size_t size, RuntimeScenario* runtime) {
142
4.21k
    if (runtime == nullptr) {
143
0
      return false;
144
0
    }
145
146
4.21k
    EnsurePostProcessor();
147
4.21k
    Message message;
148
4.21k
    if (!protobuf_mutator::libfuzzer::LoadProtoInput(true, data, size, &message)) {
149
69
      return false;
150
69
    }
151
152
    // Mutated inputs have already passed the postprocessor before entering
153
    // LPM's cache. Parsed inputs pass it in Fix(). Discarding once more is
154
    // harmless and makes the lowering boundary fail closed for either path.
155
4.14k
    message.DiscardUnknownFields();
156
4.14k
    runtime->Clear();
157
4.14k
    Traits::Lower(&message, runtime);
158
    // A projected profile root intentionally cannot carry policy-owned state
159
    // such as a fixed scheme. The postprocessor normalized that state before
160
    // Lift, but Lift necessarily omitted it; restore it at the final lowering
161
    // boundary instead of assuming the serialized root can round-trip it.
162
4.14k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
163
4.14k
      NormalizeScenarioForTarget(runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
164
4.14k
    }
165
4.14k
    return true;
166
4.21k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::MultiTraits>::LoadAndLower(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
141
18.4k
  static bool LoadAndLower(const std::uint8_t* data, std::size_t size, RuntimeScenario* runtime) {
142
18.4k
    if (runtime == nullptr) {
143
0
      return false;
144
0
    }
145
146
18.4k
    EnsurePostProcessor();
147
18.4k
    Message message;
148
18.4k
    if (!protobuf_mutator::libfuzzer::LoadProtoInput(true, data, size, &message)) {
149
230
      return false;
150
230
    }
151
152
    // Mutated inputs have already passed the postprocessor before entering
153
    // LPM's cache. Parsed inputs pass it in Fix(). Discarding once more is
154
    // harmless and makes the lowering boundary fail closed for either path.
155
18.2k
    message.DiscardUnknownFields();
156
18.2k
    runtime->Clear();
157
18.2k
    Traits::Lower(&message, runtime);
158
    // A projected profile root intentionally cannot carry policy-owned state
159
    // such as a fixed scheme. The postprocessor normalized that state before
160
    // Lift, but Lift necessarily omitted it; restore it at the final lowering
161
    // boundary instead of assuming the serialized root can round-trip it.
162
18.2k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
163
18.2k
      NormalizeScenarioForTarget(runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
164
18.2k
    }
165
18.2k
    return true;
166
18.4k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastHttp3Traits>::LoadAndLower(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
141
7.97k
  static bool LoadAndLower(const std::uint8_t* data, std::size_t size, RuntimeScenario* runtime) {
142
7.97k
    if (runtime == nullptr) {
143
0
      return false;
144
0
    }
145
146
7.97k
    EnsurePostProcessor();
147
7.97k
    Message message;
148
7.97k
    if (!protobuf_mutator::libfuzzer::LoadProtoInput(true, data, size, &message)) {
149
303
      return false;
150
303
    }
151
152
    // Mutated inputs have already passed the postprocessor before entering
153
    // LPM's cache. Parsed inputs pass it in Fix(). Discarding once more is
154
    // harmless and makes the lowering boundary fail closed for either path.
155
7.66k
    message.DiscardUnknownFields();
156
7.66k
    runtime->Clear();
157
7.66k
    Traits::Lower(&message, runtime);
158
    // A projected profile root intentionally cannot carry policy-owned state
159
    // such as a fixed scheme. The postprocessor normalized that state before
160
    // Lift, but Lift necessarily omitted it; restore it at the final lowering
161
    // boundary instead of assuming the serialized root can round-trip it.
162
7.66k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
163
7.66k
      NormalizeScenarioForTarget(runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
164
7.66k
    }
165
7.66k
    return true;
166
7.97k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::CompatibilityTraits>::LoadAndLower(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
141
21.0k
  static bool LoadAndLower(const std::uint8_t* data, std::size_t size, RuntimeScenario* runtime) {
142
21.0k
    if (runtime == nullptr) {
143
0
      return false;
144
0
    }
145
146
21.0k
    EnsurePostProcessor();
147
21.0k
    Message message;
148
21.0k
    if (!protobuf_mutator::libfuzzer::LoadProtoInput(true, data, size, &message)) {
149
470
      return false;
150
470
    }
151
152
    // Mutated inputs have already passed the postprocessor before entering
153
    // LPM's cache. Parsed inputs pass it in Fix(). Discarding once more is
154
    // harmless and makes the lowering boundary fail closed for either path.
155
20.6k
    message.DiscardUnknownFields();
156
20.6k
    runtime->Clear();
157
20.6k
    Traits::Lower(&message, runtime);
158
    // A projected profile root intentionally cannot carry policy-owned state
159
    // such as a fixed scheme. The postprocessor normalized that state before
160
    // Lift, but Lift necessarily omitted it; restore it at the final lowering
161
    // boundary instead of assuming the serialized root can round-trip it.
162
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
163
      NormalizeScenarioForTarget(runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
164
    }
165
20.6k
    return true;
166
21.0k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::ResolverTraits>::LoadAndLower(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
141
10.7k
  static bool LoadAndLower(const std::uint8_t* data, std::size_t size, RuntimeScenario* runtime) {
142
10.7k
    if (runtime == nullptr) {
143
0
      return false;
144
0
    }
145
146
10.7k
    EnsurePostProcessor();
147
10.7k
    Message message;
148
10.7k
    if (!protobuf_mutator::libfuzzer::LoadProtoInput(true, data, size, &message)) {
149
297
      return false;
150
297
    }
151
152
    // Mutated inputs have already passed the postprocessor before entering
153
    // LPM's cache. Parsed inputs pass it in Fix(). Discarding once more is
154
    // harmless and makes the lowering boundary fail closed for either path.
155
10.4k
    message.DiscardUnknownFields();
156
10.4k
    runtime->Clear();
157
10.4k
    Traits::Lower(&message, runtime);
158
    // A projected profile root intentionally cannot carry policy-owned state
159
    // such as a fixed scheme. The postprocessor normalized that state before
160
    // Lift, but Lift necessarily omitted it; restore it at the final lowering
161
    // boundary instead of assuming the serialized root can round-trip it.
162
10.4k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
163
10.4k
      NormalizeScenarioForTarget(runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
164
10.4k
    }
165
10.4k
    return true;
166
10.7k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::ProxyTransportTraits>::LoadAndLower(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
141
14.2k
  static bool LoadAndLower(const std::uint8_t* data, std::size_t size, RuntimeScenario* runtime) {
142
14.2k
    if (runtime == nullptr) {
143
0
      return false;
144
0
    }
145
146
14.2k
    EnsurePostProcessor();
147
14.2k
    Message message;
148
14.2k
    if (!protobuf_mutator::libfuzzer::LoadProtoInput(true, data, size, &message)) {
149
49
      return false;
150
49
    }
151
152
    // Mutated inputs have already passed the postprocessor before entering
153
    // LPM's cache. Parsed inputs pass it in Fix(). Discarding once more is
154
    // harmless and makes the lowering boundary fail closed for either path.
155
14.1k
    message.DiscardUnknownFields();
156
14.1k
    runtime->Clear();
157
14.1k
    Traits::Lower(&message, runtime);
158
    // A projected profile root intentionally cannot carry policy-owned state
159
    // such as a fixed scheme. The postprocessor normalized that state before
160
    // Lift, but Lift necessarily omitted it; restore it at the final lowering
161
    // boundary instead of assuming the serialized root can round-trip it.
162
14.1k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
163
14.1k
      NormalizeScenarioForTarget(runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
164
14.1k
    }
165
14.1k
    return true;
166
14.2k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastHttp2Traits>::LoadAndLower(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
141
17.4k
  static bool LoadAndLower(const std::uint8_t* data, std::size_t size, RuntimeScenario* runtime) {
142
17.4k
    if (runtime == nullptr) {
143
0
      return false;
144
0
    }
145
146
17.4k
    EnsurePostProcessor();
147
17.4k
    Message message;
148
17.4k
    if (!protobuf_mutator::libfuzzer::LoadProtoInput(true, data, size, &message)) {
149
388
      return false;
150
388
    }
151
152
    // Mutated inputs have already passed the postprocessor before entering
153
    // LPM's cache. Parsed inputs pass it in Fix(). Discarding once more is
154
    // harmless and makes the lowering boundary fail closed for either path.
155
17.0k
    message.DiscardUnknownFields();
156
17.0k
    runtime->Clear();
157
17.0k
    Traits::Lower(&message, runtime);
158
    // A projected profile root intentionally cannot carry policy-owned state
159
    // such as a fixed scheme. The postprocessor normalized that state before
160
    // Lift, but Lift necessarily omitted it; restore it at the final lowering
161
    // boundary instead of assuming the serialized root can round-trip it.
162
17.0k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
163
17.0k
      NormalizeScenarioForTarget(runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
164
17.0k
    }
165
17.0k
    return true;
166
17.4k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastHttpTraits>::LoadAndLower(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
141
16.8k
  static bool LoadAndLower(const std::uint8_t* data, std::size_t size, RuntimeScenario* runtime) {
142
16.8k
    if (runtime == nullptr) {
143
0
      return false;
144
0
    }
145
146
16.8k
    EnsurePostProcessor();
147
16.8k
    Message message;
148
16.8k
    if (!protobuf_mutator::libfuzzer::LoadProtoInput(true, data, size, &message)) {
149
52
      return false;
150
52
    }
151
152
    // Mutated inputs have already passed the postprocessor before entering
153
    // LPM's cache. Parsed inputs pass it in Fix(). Discarding once more is
154
    // harmless and makes the lowering boundary fail closed for either path.
155
16.8k
    message.DiscardUnknownFields();
156
16.8k
    runtime->Clear();
157
16.8k
    Traits::Lower(&message, runtime);
158
    // A projected profile root intentionally cannot carry policy-owned state
159
    // such as a fixed scheme. The postprocessor normalized that state before
160
    // Lift, but Lift necessarily omitted it; restore it at the final lowering
161
    // boundary instead of assuming the serialized root can round-trip it.
162
16.8k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
163
16.8k
      NormalizeScenarioForTarget(runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
164
16.8k
    }
165
16.8k
    return true;
166
16.8k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::ApiTraits>::LoadAndLower(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
141
20.1k
  static bool LoadAndLower(const std::uint8_t* data, std::size_t size, RuntimeScenario* runtime) {
142
20.1k
    if (runtime == nullptr) {
143
0
      return false;
144
0
    }
145
146
20.1k
    EnsurePostProcessor();
147
20.1k
    Message message;
148
20.1k
    if (!protobuf_mutator::libfuzzer::LoadProtoInput(true, data, size, &message)) {
149
207
      return false;
150
207
    }
151
152
    // Mutated inputs have already passed the postprocessor before entering
153
    // LPM's cache. Parsed inputs pass it in Fix(). Discarding once more is
154
    // harmless and makes the lowering boundary fail closed for either path.
155
19.9k
    message.DiscardUnknownFields();
156
19.9k
    runtime->Clear();
157
19.9k
    Traits::Lower(&message, runtime);
158
    // A projected profile root intentionally cannot carry policy-owned state
159
    // such as a fixed scheme. The postprocessor normalized that state before
160
    // Lift, but Lift necessarily omitted it; restore it at the final lowering
161
    // boundary instead of assuming the serialized root can round-trip it.
162
19.9k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
163
19.9k
      NormalizeScenarioForTarget(runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
164
19.9k
    }
165
19.9k
    return true;
166
20.1k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastLdapTraits>::LoadAndLower(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
141
6.75k
  static bool LoadAndLower(const std::uint8_t* data, std::size_t size, RuntimeScenario* runtime) {
142
6.75k
    if (runtime == nullptr) {
143
0
      return false;
144
0
    }
145
146
6.75k
    EnsurePostProcessor();
147
6.75k
    Message message;
148
6.75k
    if (!protobuf_mutator::libfuzzer::LoadProtoInput(true, data, size, &message)) {
149
60
      return false;
150
60
    }
151
152
    // Mutated inputs have already passed the postprocessor before entering
153
    // LPM's cache. Parsed inputs pass it in Fix(). Discarding once more is
154
    // harmless and makes the lowering boundary fail closed for either path.
155
6.69k
    message.DiscardUnknownFields();
156
6.69k
    runtime->Clear();
157
6.69k
    Traits::Lower(&message, runtime);
158
    // A projected profile root intentionally cannot carry policy-owned state
159
    // such as a fixed scheme. The postprocessor normalized that state before
160
    // Lift, but Lift necessarily omitted it; restore it at the final lowering
161
    // boundary instead of assuming the serialized root can round-trip it.
162
6.69k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
163
6.69k
      NormalizeScenarioForTarget(runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
164
6.69k
    }
165
6.69k
    return true;
166
6.75k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastRtspTraits>::LoadAndLower(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
141
7.94k
  static bool LoadAndLower(const std::uint8_t* data, std::size_t size, RuntimeScenario* runtime) {
142
7.94k
    if (runtime == nullptr) {
143
0
      return false;
144
0
    }
145
146
7.94k
    EnsurePostProcessor();
147
7.94k
    Message message;
148
7.94k
    if (!protobuf_mutator::libfuzzer::LoadProtoInput(true, data, size, &message)) {
149
91
      return false;
150
91
    }
151
152
    // Mutated inputs have already passed the postprocessor before entering
153
    // LPM's cache. Parsed inputs pass it in Fix(). Discarding once more is
154
    // harmless and makes the lowering boundary fail closed for either path.
155
7.85k
    message.DiscardUnknownFields();
156
7.85k
    runtime->Clear();
157
7.85k
    Traits::Lower(&message, runtime);
158
    // A projected profile root intentionally cannot carry policy-owned state
159
    // such as a fixed scheme. The postprocessor normalized that state before
160
    // Lift, but Lift necessarily omitted it; restore it at the final lowering
161
    // boundary instead of assuming the serialized root can round-trip it.
162
7.85k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
163
7.85k
      NormalizeScenarioForTarget(runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
164
7.85k
    }
165
7.85k
    return true;
166
7.94k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastMqttTraits>::LoadAndLower(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
141
4.28k
  static bool LoadAndLower(const std::uint8_t* data, std::size_t size, RuntimeScenario* runtime) {
142
4.28k
    if (runtime == nullptr) {
143
0
      return false;
144
0
    }
145
146
4.28k
    EnsurePostProcessor();
147
4.28k
    Message message;
148
4.28k
    if (!protobuf_mutator::libfuzzer::LoadProtoInput(true, data, size, &message)) {
149
74
      return false;
150
74
    }
151
152
    // Mutated inputs have already passed the postprocessor before entering
153
    // LPM's cache. Parsed inputs pass it in Fix(). Discarding once more is
154
    // harmless and makes the lowering boundary fail closed for either path.
155
4.21k
    message.DiscardUnknownFields();
156
4.21k
    runtime->Clear();
157
4.21k
    Traits::Lower(&message, runtime);
158
    // A projected profile root intentionally cannot carry policy-owned state
159
    // such as a fixed scheme. The postprocessor normalized that state before
160
    // Lift, but Lift necessarily omitted it; restore it at the final lowering
161
    // boundary instead of assuming the serialized root can round-trip it.
162
4.21k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
163
4.21k
      NormalizeScenarioForTarget(runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
164
4.21k
    }
165
4.21k
    return true;
166
4.28k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::FastSecureWebSocketTraits>::LoadAndLower(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
141
10.0k
  static bool LoadAndLower(const std::uint8_t* data, std::size_t size, RuntimeScenario* runtime) {
142
10.0k
    if (runtime == nullptr) {
143
0
      return false;
144
0
    }
145
146
10.0k
    EnsurePostProcessor();
147
10.0k
    Message message;
148
10.0k
    if (!protobuf_mutator::libfuzzer::LoadProtoInput(true, data, size, &message)) {
149
129
      return false;
150
129
    }
151
152
    // Mutated inputs have already passed the postprocessor before entering
153
    // LPM's cache. Parsed inputs pass it in Fix(). Discarding once more is
154
    // harmless and makes the lowering boundary fail closed for either path.
155
9.88k
    message.DiscardUnknownFields();
156
9.88k
    runtime->Clear();
157
9.88k
    Traits::Lower(&message, runtime);
158
    // A projected profile root intentionally cannot carry policy-owned state
159
    // such as a fixed scheme. The postprocessor normalized that state before
160
    // Lift, but Lift necessarily omitted it; restore it at the final lowering
161
    // boundary instead of assuming the serialized root can round-trip it.
162
9.88k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
163
9.88k
      NormalizeScenarioForTarget(runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
164
9.88k
    }
165
9.88k
    return true;
166
10.0k
  }
proto_fuzzer::ProfileFuzzerHooks<proto_fuzzer::generated::H2ProxyTraits>::LoadAndLower(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
141
13.6k
  static bool LoadAndLower(const std::uint8_t* data, std::size_t size, RuntimeScenario* runtime) {
142
13.6k
    if (runtime == nullptr) {
143
0
      return false;
144
0
    }
145
146
13.6k
    EnsurePostProcessor();
147
13.6k
    Message message;
148
13.6k
    if (!protobuf_mutator::libfuzzer::LoadProtoInput(true, data, size, &message)) {
149
157
      return false;
150
157
    }
151
152
    // Mutated inputs have already passed the postprocessor before entering
153
    // LPM's cache. Parsed inputs pass it in Fix(). Discarding once more is
154
    // harmless and makes the lowering boundary fail closed for either path.
155
13.5k
    message.DiscardUnknownFields();
156
13.5k
    runtime->Clear();
157
13.5k
    Traits::Lower(&message, runtime);
158
    // A projected profile root intentionally cannot carry policy-owned state
159
    // such as a fixed scheme. The postprocessor normalized that state before
160
    // Lift, but Lift necessarily omitted it; restore it at the final lowering
161
    // boundary instead of assuming the serialized root can round-trip it.
162
13.5k
    if constexpr (Traits::kProfile != TargetProfile::kCompatibility) {
163
13.5k
      NormalizeScenarioForTarget(runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
164
13.5k
    }
165
13.5k
    return true;
166
13.6k
  }
167
};
168
169
/// Load one generated profile message and lower it into runtime state.
170
/// @tparam Traits Generated adapter defining the concrete message type.
171
/// @param data Serialized generated-profile bytes.
172
/// @param size Number of bytes available at `data`.
173
/// @param runtime Destination for the owned runtime Scenario.
174
/// @return Whether parsing and lowering succeeded.
175
template <typename Traits>
176
337k
bool LoadProfileInput(const std::uint8_t* data, std::size_t size, curl::fuzzer::proto::Scenario* runtime) {
177
337k
  return ProfileFuzzerHooks<Traits>::LoadAndLower(data, size, runtime);
178
337k
}
bool proto_fuzzer::LoadProfileInput<proto_fuzzer::generated::FastTelnetTraits>(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
176
4.61k
bool LoadProfileInput(const std::uint8_t* data, std::size_t size, curl::fuzzer::proto::Scenario* runtime) {
177
4.61k
  return ProfileFuzzerHooks<Traits>::LoadAndLower(data, size, runtime);
178
4.61k
}
bool proto_fuzzer::LoadProfileInput<proto_fuzzer::generated::FastFtpTraits>(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
176
7.56k
bool LoadProfileInput(const std::uint8_t* data, std::size_t size, curl::fuzzer::proto::Scenario* runtime) {
177
7.56k
  return ProfileFuzzerHooks<Traits>::LoadAndLower(data, size, runtime);
178
7.56k
}
bool proto_fuzzer::LoadProfileInput<proto_fuzzer::generated::FastSmtpTraits>(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
176
6.17k
bool LoadProfileInput(const std::uint8_t* data, std::size_t size, curl::fuzzer::proto::Scenario* runtime) {
177
6.17k
  return ProfileFuzzerHooks<Traits>::LoadAndLower(data, size, runtime);
178
6.17k
}
bool proto_fuzzer::LoadProfileInput<proto_fuzzer::generated::HttpsH2Traits>(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
176
15.1k
bool LoadProfileInput(const std::uint8_t* data, std::size_t size, curl::fuzzer::proto::Scenario* runtime) {
177
15.1k
  return ProfileFuzzerHooks<Traits>::LoadAndLower(data, size, runtime);
178
15.1k
}
bool proto_fuzzer::LoadProfileInput<proto_fuzzer::generated::FastTftpTraits>(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
176
2.44k
bool LoadProfileInput(const std::uint8_t* data, std::size_t size, curl::fuzzer::proto::Scenario* runtime) {
177
2.44k
  return ProfileFuzzerHooks<Traits>::LoadAndLower(data, size, runtime);
178
2.44k
}
bool proto_fuzzer::LoadProfileInput<proto_fuzzer::generated::FastWebSocketTraits>(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
176
11.9k
bool LoadProfileInput(const std::uint8_t* data, std::size_t size, curl::fuzzer::proto::Scenario* runtime) {
177
11.9k
  return ProfileFuzzerHooks<Traits>::LoadAndLower(data, size, runtime);
178
11.9k
}
bool proto_fuzzer::LoadProfileInput<proto_fuzzer::generated::FastDictTraits>(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
176
3.11k
bool LoadProfileInput(const std::uint8_t* data, std::size_t size, curl::fuzzer::proto::Scenario* runtime) {
177
3.11k
  return ProfileFuzzerHooks<Traits>::LoadAndLower(data, size, runtime);
178
3.11k
}
bool proto_fuzzer::LoadProfileInput<proto_fuzzer::generated::DeepHttpTraits>(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
176
21.9k
bool LoadProfileInput(const std::uint8_t* data, std::size_t size, curl::fuzzer::proto::Scenario* runtime) {
177
21.9k
  return ProfileFuzzerHooks<Traits>::LoadAndLower(data, size, runtime);
178
21.9k
}
bool proto_fuzzer::LoadProfileInput<proto_fuzzer::generated::FastIpfsTraits>(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
176
12.1k
bool LoadProfileInput(const std::uint8_t* data, std::size_t size, curl::fuzzer::proto::Scenario* runtime) {
177
12.1k
  return ProfileFuzzerHooks<Traits>::LoadAndLower(data, size, runtime);
178
12.1k
}
bool proto_fuzzer::LoadProfileInput<proto_fuzzer::generated::FastHttpsTraits>(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
176
41.3k
bool LoadProfileInput(const std::uint8_t* data, std::size_t size, curl::fuzzer::proto::Scenario* runtime) {
177
41.3k
  return ProfileFuzzerHooks<Traits>::LoadAndLower(data, size, runtime);
178
41.3k
}
bool proto_fuzzer::LoadProfileInput<proto_fuzzer::generated::FastImapTraits>(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
176
6.62k
bool LoadProfileInput(const std::uint8_t* data, std::size_t size, curl::fuzzer::proto::Scenario* runtime) {
177
6.62k
  return ProfileFuzzerHooks<Traits>::LoadAndLower(data, size, runtime);
178
6.62k
}
bool proto_fuzzer::LoadProfileInput<proto_fuzzer::generated::FastGopherTraits>(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
176
9.06k
bool LoadProfileInput(const std::uint8_t* data, std::size_t size, curl::fuzzer::proto::Scenario* runtime) {
177
9.06k
  return ProfileFuzzerHooks<Traits>::LoadAndLower(data, size, runtime);
178
9.06k
}
bool proto_fuzzer::LoadProfileInput<proto_fuzzer::generated::FastFileTraits>(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
176
4.17k
bool LoadProfileInput(const std::uint8_t* data, std::size_t size, curl::fuzzer::proto::Scenario* runtime) {
177
4.17k
  return ProfileFuzzerHooks<Traits>::LoadAndLower(data, size, runtime);
178
4.17k
}
bool proto_fuzzer::LoadProfileInput<proto_fuzzer::generated::TimingTraits>(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
176
17.1k
bool LoadProfileInput(const std::uint8_t* data, std::size_t size, curl::fuzzer::proto::Scenario* runtime) {
177
17.1k
  return ProfileFuzzerHooks<Traits>::LoadAndLower(data, size, runtime);
178
17.1k
}
bool proto_fuzzer::LoadProfileInput<proto_fuzzer::generated::FastPop3Traits>(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
176
4.21k
bool LoadProfileInput(const std::uint8_t* data, std::size_t size, curl::fuzzer::proto::Scenario* runtime) {
177
4.21k
  return ProfileFuzzerHooks<Traits>::LoadAndLower(data, size, runtime);
178
4.21k
}
bool proto_fuzzer::LoadProfileInput<proto_fuzzer::generated::MultiTraits>(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
176
18.4k
bool LoadProfileInput(const std::uint8_t* data, std::size_t size, curl::fuzzer::proto::Scenario* runtime) {
177
18.4k
  return ProfileFuzzerHooks<Traits>::LoadAndLower(data, size, runtime);
178
18.4k
}
bool proto_fuzzer::LoadProfileInput<proto_fuzzer::generated::FastHttp3Traits>(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
176
7.97k
bool LoadProfileInput(const std::uint8_t* data, std::size_t size, curl::fuzzer::proto::Scenario* runtime) {
177
7.97k
  return ProfileFuzzerHooks<Traits>::LoadAndLower(data, size, runtime);
178
7.97k
}
bool proto_fuzzer::LoadProfileInput<proto_fuzzer::generated::CompatibilityTraits>(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
176
21.0k
bool LoadProfileInput(const std::uint8_t* data, std::size_t size, curl::fuzzer::proto::Scenario* runtime) {
177
21.0k
  return ProfileFuzzerHooks<Traits>::LoadAndLower(data, size, runtime);
178
21.0k
}
bool proto_fuzzer::LoadProfileInput<proto_fuzzer::generated::ResolverTraits>(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
176
10.7k
bool LoadProfileInput(const std::uint8_t* data, std::size_t size, curl::fuzzer::proto::Scenario* runtime) {
177
10.7k
  return ProfileFuzzerHooks<Traits>::LoadAndLower(data, size, runtime);
178
10.7k
}
bool proto_fuzzer::LoadProfileInput<proto_fuzzer::generated::ProxyTransportTraits>(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
176
14.2k
bool LoadProfileInput(const std::uint8_t* data, std::size_t size, curl::fuzzer::proto::Scenario* runtime) {
177
14.2k
  return ProfileFuzzerHooks<Traits>::LoadAndLower(data, size, runtime);
178
14.2k
}
bool proto_fuzzer::LoadProfileInput<proto_fuzzer::generated::FastHttp2Traits>(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
176
17.4k
bool LoadProfileInput(const std::uint8_t* data, std::size_t size, curl::fuzzer::proto::Scenario* runtime) {
177
17.4k
  return ProfileFuzzerHooks<Traits>::LoadAndLower(data, size, runtime);
178
17.4k
}
bool proto_fuzzer::LoadProfileInput<proto_fuzzer::generated::FastHttpTraits>(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
176
16.8k
bool LoadProfileInput(const std::uint8_t* data, std::size_t size, curl::fuzzer::proto::Scenario* runtime) {
177
16.8k
  return ProfileFuzzerHooks<Traits>::LoadAndLower(data, size, runtime);
178
16.8k
}
bool proto_fuzzer::LoadProfileInput<proto_fuzzer::generated::ApiTraits>(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
176
20.1k
bool LoadProfileInput(const std::uint8_t* data, std::size_t size, curl::fuzzer::proto::Scenario* runtime) {
177
20.1k
  return ProfileFuzzerHooks<Traits>::LoadAndLower(data, size, runtime);
178
20.1k
}
bool proto_fuzzer::LoadProfileInput<proto_fuzzer::generated::FastLdapTraits>(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
176
6.75k
bool LoadProfileInput(const std::uint8_t* data, std::size_t size, curl::fuzzer::proto::Scenario* runtime) {
177
6.75k
  return ProfileFuzzerHooks<Traits>::LoadAndLower(data, size, runtime);
178
6.75k
}
bool proto_fuzzer::LoadProfileInput<proto_fuzzer::generated::FastRtspTraits>(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
176
7.94k
bool LoadProfileInput(const std::uint8_t* data, std::size_t size, curl::fuzzer::proto::Scenario* runtime) {
177
7.94k
  return ProfileFuzzerHooks<Traits>::LoadAndLower(data, size, runtime);
178
7.94k
}
bool proto_fuzzer::LoadProfileInput<proto_fuzzer::generated::FastMqttTraits>(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
176
4.28k
bool LoadProfileInput(const std::uint8_t* data, std::size_t size, curl::fuzzer::proto::Scenario* runtime) {
177
4.28k
  return ProfileFuzzerHooks<Traits>::LoadAndLower(data, size, runtime);
178
4.28k
}
bool proto_fuzzer::LoadProfileInput<proto_fuzzer::generated::FastSecureWebSocketTraits>(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
176
10.0k
bool LoadProfileInput(const std::uint8_t* data, std::size_t size, curl::fuzzer::proto::Scenario* runtime) {
177
10.0k
  return ProfileFuzzerHooks<Traits>::LoadAndLower(data, size, runtime);
178
10.0k
}
bool proto_fuzzer::LoadProfileInput<proto_fuzzer::generated::H2ProxyTraits>(unsigned char const*, unsigned long, curl::fuzzer::proto::Scenario*)
Line
Count
Source
176
13.6k
bool LoadProfileInput(const std::uint8_t* data, std::size_t size, curl::fuzzer::proto::Scenario* runtime) {
177
13.6k
  return ProfileFuzzerHooks<Traits>::LoadAndLower(data, size, runtime);
178
13.6k
}
179
180
/// Exercise the typed mutation ABI once for the profiling timing target.
181
/// @tparam Traits Generated adapter defining the concrete message type.
182
template <typename Traits>
183
17.1k
void ProbeTimingMutationHelpers() {
184
17.1k
  static const bool mutation_helpers_probed = [] {
185
1
    constexpr std::size_t kBufferSize = 1024;
186
1
    constexpr unsigned int kMutationSeed = 0x4355524cU;
187
188
1
    curl::fuzzer::proto::Scenario runtime;
189
1
    NormalizeScenarioForTarget(&runtime, Traits::kProfile, &Traits::PruneConditionalEligibility);
190
191
1
    typename Traits::Message message;
192
1
    Traits::Lift(&runtime, &message);
193
1
    std::array<std::uint8_t, kBufferSize> first = {};
194
1
    const std::size_t original_size = message.ByteSizeLong();
195
1
    if (original_size > first.size()) {
196
0
      return true;
197
0
    }
198
1
    (void)message.SerializeWithCachedSizesToArray(first.data());
199
200
1
    using Hooks = ProfileFuzzerHooks<Traits>;
201
1
    std::array<std::uint8_t, kBufferSize> second = first;
202
1
    std::array<std::uint8_t, kBufferSize> child = {};
203
1
    const std::size_t mutated_size = Hooks::CustomMutator(first.data(), original_size, first.size(), kMutationSeed);
204
1
    const std::size_t crossed_size = Hooks::CustomCrossOver(first.data(), mutated_size, second.data(), original_size,
205
1
                                                            child.data(), child.size(), kMutationSeed);
206
1
    const volatile std::size_t result_sizes[] = {mutated_size, crossed_size};
207
1
    (void)result_sizes;
208
1
    return true;
209
1
  }();
210
17.1k
  (void)mutation_helpers_probed;
211
17.1k
}
212
213
/// Bind one generated adapter to the ordinary entrypoint helper interface.
214
/// @tparam Traits Generated adapter defining the concrete message type.
215
/// @return Immutable runtime descriptor binding all callbacks to `Traits`.
216
template <typename Traits>
217
0
constexpr ProfileFuzzerTraits BindProfileFuzzer() {
218
0
  using Hooks = ProfileFuzzerHooks<Traits>;
219
0
  if constexpr (Traits::kProfile == TargetProfile::kTiming) {
220
0
    return {Traits::kProfile, &Hooks::CustomMutator, &Hooks::CustomCrossOver, &LoadProfileInput<Traits>,
221
0
            &ProbeTimingMutationHelpers<Traits>};
222
0
  }
223
0
  return {Traits::kProfile, &Hooks::CustomMutator, &Hooks::CustomCrossOver, &LoadProfileInput<Traits>, nullptr};
224
0
}
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerTraits proto_fuzzer::BindProfileFuzzer<proto_fuzzer::generated::FastTelnetTraits>()
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerTraits proto_fuzzer::BindProfileFuzzer<proto_fuzzer::generated::FastFtpTraits>()
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerTraits proto_fuzzer::BindProfileFuzzer<proto_fuzzer::generated::FastSmtpTraits>()
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerTraits proto_fuzzer::BindProfileFuzzer<proto_fuzzer::generated::HttpsH2Traits>()
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerTraits proto_fuzzer::BindProfileFuzzer<proto_fuzzer::generated::FastTftpTraits>()
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerTraits proto_fuzzer::BindProfileFuzzer<proto_fuzzer::generated::FastWebSocketTraits>()
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerTraits proto_fuzzer::BindProfileFuzzer<proto_fuzzer::generated::FastDictTraits>()
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerTraits proto_fuzzer::BindProfileFuzzer<proto_fuzzer::generated::DeepHttpTraits>()
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerTraits proto_fuzzer::BindProfileFuzzer<proto_fuzzer::generated::FastIpfsTraits>()
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerTraits proto_fuzzer::BindProfileFuzzer<proto_fuzzer::generated::FastHttpsTraits>()
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerTraits proto_fuzzer::BindProfileFuzzer<proto_fuzzer::generated::FastImapTraits>()
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerTraits proto_fuzzer::BindProfileFuzzer<proto_fuzzer::generated::FastGopherTraits>()
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerTraits proto_fuzzer::BindProfileFuzzer<proto_fuzzer::generated::FastFileTraits>()
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerTraits proto_fuzzer::BindProfileFuzzer<proto_fuzzer::generated::TimingTraits>()
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerTraits proto_fuzzer::BindProfileFuzzer<proto_fuzzer::generated::FastPop3Traits>()
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerTraits proto_fuzzer::BindProfileFuzzer<proto_fuzzer::generated::MultiTraits>()
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerTraits proto_fuzzer::BindProfileFuzzer<proto_fuzzer::generated::FastHttp3Traits>()
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerTraits proto_fuzzer::BindProfileFuzzer<proto_fuzzer::generated::CompatibilityTraits>()
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerTraits proto_fuzzer::BindProfileFuzzer<proto_fuzzer::generated::ResolverTraits>()
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerTraits proto_fuzzer::BindProfileFuzzer<proto_fuzzer::generated::ProxyTransportTraits>()
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerTraits proto_fuzzer::BindProfileFuzzer<proto_fuzzer::generated::FastHttp2Traits>()
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerTraits proto_fuzzer::BindProfileFuzzer<proto_fuzzer::generated::FastHttpTraits>()
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerTraits proto_fuzzer::BindProfileFuzzer<proto_fuzzer::generated::ApiTraits>()
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerTraits proto_fuzzer::BindProfileFuzzer<proto_fuzzer::generated::FastLdapTraits>()
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerTraits proto_fuzzer::BindProfileFuzzer<proto_fuzzer::generated::FastRtspTraits>()
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerTraits proto_fuzzer::BindProfileFuzzer<proto_fuzzer::generated::FastMqttTraits>()
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerTraits proto_fuzzer::BindProfileFuzzer<proto_fuzzer::generated::FastSecureWebSocketTraits>()
Unexecuted instantiation: proto_fuzzer::ProfileFuzzerTraits proto_fuzzer::BindProfileFuzzer<proto_fuzzer::generated::H2ProxyTraits>()
225
226
}  // namespace proto_fuzzer
227
228
#endif  // PROTO_FUZZER_PROFILE_FUZZER_H_