Coverage Report

Created: 2026-03-15 06:34

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/expat/build/xml_lpm_fuzzer.pb.cc
Line
Count
Source
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: xml_lpm_fuzzer.proto
3
4
#include "xml_lpm_fuzzer.pb.h"
5
6
#include <algorithm>
7
8
#include <google/protobuf/stubs/common.h>
9
#include <google/protobuf/stubs/port.h>
10
#include <google/protobuf/io/coded_stream.h>
11
#include <google/protobuf/wire_format_lite_inl.h>
12
#include <google/protobuf/descriptor.h>
13
#include <google/protobuf/generated_message_reflection.h>
14
#include <google/protobuf/reflection_ops.h>
15
#include <google/protobuf/wire_format.h>
16
// This is a temporary google only hack
17
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
18
#include "third_party/protobuf/version.h"
19
#endif
20
// @@protoc_insertion_point(includes)
21
22
namespace protobuf_xml_5flpm_5ffuzzer_2eproto {
23
extern PROTOBUF_INTERNAL_EXPORT_protobuf_xml_5flpm_5ffuzzer_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Action;
24
}  // namespace protobuf_xml_5flpm_5ffuzzer_2eproto
25
namespace xml_lpm_fuzzer {
26
class ActionDefaultTypeInternal {
27
 public:
28
  ::google::protobuf::internal::ExplicitlyConstructed<Action>
29
      _instance;
30
  ::google::protobuf::internal::ArenaStringPtr chunk_;
31
  ::google::protobuf::internal::ArenaStringPtr last_chunk_;
32
  bool reset_;
33
  ::google::protobuf::internal::ArenaStringPtr external_entity_;
34
} _Action_default_instance_;
35
class TestcaseDefaultTypeInternal {
36
 public:
37
  ::google::protobuf::internal::ExplicitlyConstructed<Testcase>
38
      _instance;
39
} _Testcase_default_instance_;
40
}  // namespace xml_lpm_fuzzer
41
namespace protobuf_xml_5flpm_5ffuzzer_2eproto {
42
2
static void InitDefaultsAction() {
43
2
  GOOGLE_PROTOBUF_VERIFY_VERSION;
44
45
2
  {
46
2
    void* ptr = &::xml_lpm_fuzzer::_Action_default_instance_;
47
2
    new (ptr) ::xml_lpm_fuzzer::Action();
48
2
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
49
2
  }
50
2
  ::xml_lpm_fuzzer::Action::InitAsDefaultInstance();
51
2
}
52
53
::google::protobuf::internal::SCCInfo<0> scc_info_Action =
54
    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAction}, {}};
55
56
2
static void InitDefaultsTestcase() {
57
2
  GOOGLE_PROTOBUF_VERIFY_VERSION;
58
59
2
  {
60
2
    void* ptr = &::xml_lpm_fuzzer::_Testcase_default_instance_;
61
2
    new (ptr) ::xml_lpm_fuzzer::Testcase();
62
2
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
63
2
  }
64
2
  ::xml_lpm_fuzzer::Testcase::InitAsDefaultInstance();
65
2
}
66
67
::google::protobuf::internal::SCCInfo<1> scc_info_Testcase =
68
    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTestcase}, {
69
      &protobuf_xml_5flpm_5ffuzzer_2eproto::scc_info_Action.base,}};
70
71
2
void InitDefaults() {
72
2
  ::google::protobuf::internal::InitSCC(&scc_info_Action.base);
73
2
  ::google::protobuf::internal::InitSCC(&scc_info_Testcase.base);
74
2
}
75
76
::google::protobuf::Metadata file_level_metadata[2];
77
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
78
79
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
80
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::xml_lpm_fuzzer::Action, _has_bits_),
81
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::xml_lpm_fuzzer::Action, _internal_metadata_),
82
  ~0u,  // no _extensions_
83
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::xml_lpm_fuzzer::Action, _oneof_case_[0]),
84
  ~0u,  // no _weak_field_map_
85
  offsetof(::xml_lpm_fuzzer::ActionDefaultTypeInternal, chunk_),
86
  offsetof(::xml_lpm_fuzzer::ActionDefaultTypeInternal, last_chunk_),
87
  offsetof(::xml_lpm_fuzzer::ActionDefaultTypeInternal, reset_),
88
  offsetof(::xml_lpm_fuzzer::ActionDefaultTypeInternal, external_entity_),
89
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::xml_lpm_fuzzer::Action, action_),
90
  ~0u,
91
  ~0u,
92
  ~0u,
93
  ~0u,
94
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::xml_lpm_fuzzer::Testcase, _has_bits_),
95
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::xml_lpm_fuzzer::Testcase, _internal_metadata_),
96
  ~0u,  // no _extensions_
97
  ~0u,  // no _oneof_case_
98
  ~0u,  // no _weak_field_map_
99
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::xml_lpm_fuzzer::Testcase, encoding_),
100
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::xml_lpm_fuzzer::Testcase, actions_),
101
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::xml_lpm_fuzzer::Testcase, fail_allocations_),
102
  0,
103
  ~0u,
104
  ~0u,
105
};
106
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
107
  { 0, 10, sizeof(::xml_lpm_fuzzer::Action)},
108
  { 14, 22, sizeof(::xml_lpm_fuzzer::Testcase)},
109
};
110
111
static ::google::protobuf::Message const * const file_default_instances[] = {
112
  reinterpret_cast<const ::google::protobuf::Message*>(&::xml_lpm_fuzzer::_Action_default_instance_),
113
  reinterpret_cast<const ::google::protobuf::Message*>(&::xml_lpm_fuzzer::_Testcase_default_instance_),
114
};
115
116
1
void protobuf_AssignDescriptors() {
117
1
  AddDescriptors();
118
1
  AssignDescriptors(
119
1
      "xml_lpm_fuzzer.proto", schemas, file_default_instances, TableStruct::offsets,
120
1
      file_level_metadata, file_level_enum_descriptors, NULL);
121
1
}
122
123
9.15M
void protobuf_AssignDescriptorsOnce() {
124
9.15M
  static ::google::protobuf::internal::once_flag once;
125
9.15M
  ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
126
9.15M
}
127
128
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
129
1
void protobuf_RegisterTypes(const ::std::string&) {
130
1
  protobuf_AssignDescriptorsOnce();
131
1
  ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 2);
132
1
}
133
134
2
void AddDescriptorsImpl() {
135
2
  InitDefaults();
136
2
  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
137
2
      "\n\024xml_lpm_fuzzer.proto\022\016xml_lpm_fuzzer\"e"
138
2
      "\n\006Action\022\017\n\005chunk\030\001 \001(\tH\000\022\024\n\nlast_chunk\030"
139
2
      "\002 \001(\tH\000\022\017\n\005reset\030\003 \001(\010H\000\022\031\n\017external_ent"
140
2
      "ity\030\004 \001(\tH\000B\010\n\006action\"y\n\010Testcase\022*\n\010enc"
141
2
      "oding\030\001 \002(\0162\030.xml_lpm_fuzzer.Encoding\022\'\n"
142
2
      "\007actions\030\002 \003(\0132\026.xml_lpm_fuzzer.Action\022\030"
143
2
      "\n\020fail_allocations\030\003 \003(\005*O\n\010Encoding\022\010\n\004"
144
2
      "UTF8\020\000\022\t\n\005UTF16\020\001\022\014\n\010ISO88591\020\002\022\t\n\005ASCII"
145
2
      "\020\003\022\013\n\007UNKNOWN\020\004\022\010\n\004NONE\020\005"
146
2
  };
147
2
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
148
2
      descriptor, 345);
149
2
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
150
2
    "xml_lpm_fuzzer.proto", &protobuf_RegisterTypes);
151
2
}
152
153
3
void AddDescriptors() {
154
3
  static ::google::protobuf::internal::once_flag once;
155
3
  ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
156
3
}
157
// Force AddDescriptors() to be called at dynamic initialization time.
158
struct StaticDescriptorInitializer {
159
2
  StaticDescriptorInitializer() {
160
2
    AddDescriptors();
161
2
  }
162
} static_descriptor_initializer;
163
}  // namespace protobuf_xml_5flpm_5ffuzzer_2eproto
164
namespace xml_lpm_fuzzer {
165
0
const ::google::protobuf::EnumDescriptor* Encoding_descriptor() {
166
0
  protobuf_xml_5flpm_5ffuzzer_2eproto::protobuf_AssignDescriptorsOnce();
167
0
  return protobuf_xml_5flpm_5ffuzzer_2eproto::file_level_enum_descriptors[0];
168
0
}
169
0
bool Encoding_IsValid(int value) {
170
0
  switch (value) {
171
0
    case 0:
172
0
    case 1:
173
0
    case 2:
174
0
    case 3:
175
0
    case 4:
176
0
    case 5:
177
0
      return true;
178
0
    default:
179
0
      return false;
180
0
  }
181
0
}
182
183
184
// ===================================================================
185
186
2
void Action::InitAsDefaultInstance() {
187
2
  ::xml_lpm_fuzzer::_Action_default_instance_.chunk_.UnsafeSetDefault(
188
2
      &::google::protobuf::internal::GetEmptyStringAlreadyInited());
189
2
  ::xml_lpm_fuzzer::_Action_default_instance_.last_chunk_.UnsafeSetDefault(
190
2
      &::google::protobuf::internal::GetEmptyStringAlreadyInited());
191
2
  ::xml_lpm_fuzzer::_Action_default_instance_.reset_ = false;
192
2
  ::xml_lpm_fuzzer::_Action_default_instance_.external_entity_.UnsafeSetDefault(
193
2
      &::google::protobuf::internal::GetEmptyStringAlreadyInited());
194
2
}
195
#if !defined(_MSC_VER) || _MSC_VER >= 1900
196
const int Action::kChunkFieldNumber;
197
const int Action::kLastChunkFieldNumber;
198
const int Action::kResetFieldNumber;
199
const int Action::kExternalEntityFieldNumber;
200
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
201
202
Action::Action()
203
849k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
204
849k
  ::google::protobuf::internal::InitSCC(
205
849k
      &protobuf_xml_5flpm_5ffuzzer_2eproto::scc_info_Action.base);
206
849k
  SharedCtor();
207
  // @@protoc_insertion_point(constructor:xml_lpm_fuzzer.Action)
208
849k
}
209
Action::Action(const Action& from)
210
0
  : ::google::protobuf::Message(),
211
0
      _internal_metadata_(NULL),
212
0
      _has_bits_(from._has_bits_) {
213
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
214
0
  clear_has_action();
215
0
  switch (from.action_case()) {
216
0
    case kChunk: {
217
0
      set_chunk(from.chunk());
218
0
      break;
219
0
    }
220
0
    case kLastChunk: {
221
0
      set_last_chunk(from.last_chunk());
222
0
      break;
223
0
    }
224
0
    case kReset: {
225
0
      set_reset(from.reset());
226
0
      break;
227
0
    }
228
0
    case kExternalEntity: {
229
0
      set_external_entity(from.external_entity());
230
0
      break;
231
0
    }
232
0
    case ACTION_NOT_SET: {
233
0
      break;
234
0
    }
235
0
  }
236
  // @@protoc_insertion_point(copy_constructor:xml_lpm_fuzzer.Action)
237
0
}
238
239
849k
void Action::SharedCtor() {
240
849k
  clear_has_action();
241
849k
}
242
243
849k
Action::~Action() {
244
  // @@protoc_insertion_point(destructor:xml_lpm_fuzzer.Action)
245
849k
  SharedDtor();
246
849k
}
247
248
849k
void Action::SharedDtor() {
249
849k
  if (has_action()) {
250
408k
    clear_action();
251
408k
  }
252
849k
}
253
254
0
void Action::SetCachedSize(int size) const {
255
0
  _cached_size_.Set(size);
256
0
}
257
0
const ::google::protobuf::Descriptor* Action::descriptor() {
258
0
  ::protobuf_xml_5flpm_5ffuzzer_2eproto::protobuf_AssignDescriptorsOnce();
259
0
  return ::protobuf_xml_5flpm_5ffuzzer_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
260
0
}
261
262
0
const Action& Action::default_instance() {
263
0
  ::google::protobuf::internal::InitSCC(&protobuf_xml_5flpm_5ffuzzer_2eproto::scc_info_Action.base);
264
0
  return *internal_default_instance();
265
0
}
266
267
268
409k
void Action::clear_action() {
269
// @@protoc_insertion_point(one_of_clear_start:xml_lpm_fuzzer.Action)
270
409k
  switch (action_case()) {
271
290k
    case kChunk: {
272
290k
      action_.chunk_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
273
290k
      break;
274
0
    }
275
57.0k
    case kLastChunk: {
276
57.0k
      action_.last_chunk_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
277
57.0k
      break;
278
0
    }
279
48.9k
    case kReset: {
280
      // No need to clear
281
48.9k
      break;
282
0
    }
283
13.2k
    case kExternalEntity: {
284
13.2k
      action_.external_entity_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
285
13.2k
      break;
286
0
    }
287
204
    case ACTION_NOT_SET: {
288
204
      break;
289
0
    }
290
409k
  }
291
409k
  _oneof_case_[0] = ACTION_NOT_SET;
292
409k
}
293
294
295
1.42k
void Action::Clear() {
296
// @@protoc_insertion_point(message_clear_start:xml_lpm_fuzzer.Action)
297
1.42k
  ::google::protobuf::uint32 cached_has_bits = 0;
298
  // Prevent compiler warnings about cached_has_bits being unused
299
1.42k
  (void) cached_has_bits;
300
301
1.42k
  clear_action();
302
1.42k
  _has_bits_.Clear();
303
1.42k
  _internal_metadata_.Clear();
304
1.42k
}
305
306
bool Action::MergePartialFromCodedStream(
307
0
    ::google::protobuf::io::CodedInputStream* input) {
308
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
309
0
  ::google::protobuf::uint32 tag;
310
  // @@protoc_insertion_point(parse_start:xml_lpm_fuzzer.Action)
311
0
  for (;;) {
312
0
    ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
313
0
    tag = p.first;
314
0
    if (!p.second) goto handle_unusual;
315
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
316
      // optional string chunk = 1;
317
0
      case 1: {
318
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
319
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
320
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
321
0
                input, this->mutable_chunk()));
322
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
323
0
            this->chunk().data(), static_cast<int>(this->chunk().length()),
324
0
            ::google::protobuf::internal::WireFormat::PARSE,
325
0
            "xml_lpm_fuzzer.Action.chunk");
326
0
        } else {
327
0
          goto handle_unusual;
328
0
        }
329
0
        break;
330
0
      }
331
332
      // optional string last_chunk = 2;
333
0
      case 2: {
334
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
335
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
336
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
337
0
                input, this->mutable_last_chunk()));
338
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
339
0
            this->last_chunk().data(), static_cast<int>(this->last_chunk().length()),
340
0
            ::google::protobuf::internal::WireFormat::PARSE,
341
0
            "xml_lpm_fuzzer.Action.last_chunk");
342
0
        } else {
343
0
          goto handle_unusual;
344
0
        }
345
0
        break;
346
0
      }
347
348
      // optional bool reset = 3;
349
0
      case 3: {
350
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
351
0
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
352
0
          clear_action();
353
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
354
0
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
355
0
                 input, &action_.reset_)));
356
0
          set_has_reset();
357
0
        } else {
358
0
          goto handle_unusual;
359
0
        }
360
0
        break;
361
0
      }
362
363
      // optional string external_entity = 4;
364
0
      case 4: {
365
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
366
0
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
367
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
368
0
                input, this->mutable_external_entity()));
369
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
370
0
            this->external_entity().data(), static_cast<int>(this->external_entity().length()),
371
0
            ::google::protobuf::internal::WireFormat::PARSE,
372
0
            "xml_lpm_fuzzer.Action.external_entity");
373
0
        } else {
374
0
          goto handle_unusual;
375
0
        }
376
0
        break;
377
0
      }
378
379
0
      default: {
380
0
      handle_unusual:
381
0
        if (tag == 0) {
382
0
          goto success;
383
0
        }
384
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
385
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
386
0
        break;
387
0
      }
388
0
    }
389
0
  }
390
0
success:
391
  // @@protoc_insertion_point(parse_success:xml_lpm_fuzzer.Action)
392
0
  return true;
393
0
failure:
394
  // @@protoc_insertion_point(parse_failure:xml_lpm_fuzzer.Action)
395
0
  return false;
396
0
#undef DO_
397
0
}
398
399
void Action::SerializeWithCachedSizes(
400
0
    ::google::protobuf::io::CodedOutputStream* output) const {
401
  // @@protoc_insertion_point(serialize_start:xml_lpm_fuzzer.Action)
402
0
  ::google::protobuf::uint32 cached_has_bits = 0;
403
0
  (void) cached_has_bits;
404
405
0
  switch (action_case()) {
406
0
    case kChunk:
407
0
      ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
408
0
        this->chunk().data(), static_cast<int>(this->chunk().length()),
409
0
        ::google::protobuf::internal::WireFormat::SERIALIZE,
410
0
        "xml_lpm_fuzzer.Action.chunk");
411
0
      ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
412
0
        1, this->chunk(), output);
413
0
      break;
414
0
    case kLastChunk:
415
0
      ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
416
0
        this->last_chunk().data(), static_cast<int>(this->last_chunk().length()),
417
0
        ::google::protobuf::internal::WireFormat::SERIALIZE,
418
0
        "xml_lpm_fuzzer.Action.last_chunk");
419
0
      ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
420
0
        2, this->last_chunk(), output);
421
0
      break;
422
0
    case kReset:
423
0
      ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->reset(), output);
424
0
      break;
425
0
    case kExternalEntity:
426
0
      ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
427
0
        this->external_entity().data(), static_cast<int>(this->external_entity().length()),
428
0
        ::google::protobuf::internal::WireFormat::SERIALIZE,
429
0
        "xml_lpm_fuzzer.Action.external_entity");
430
0
      ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
431
0
        4, this->external_entity(), output);
432
0
      break;
433
0
    default: ;
434
0
  }
435
0
  if (_internal_metadata_.have_unknown_fields()) {
436
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
437
0
        _internal_metadata_.unknown_fields(), output);
438
0
  }
439
  // @@protoc_insertion_point(serialize_end:xml_lpm_fuzzer.Action)
440
0
}
441
442
::google::protobuf::uint8* Action::InternalSerializeWithCachedSizesToArray(
443
0
    bool deterministic, ::google::protobuf::uint8* target) const {
444
0
  (void)deterministic; // Unused
445
  // @@protoc_insertion_point(serialize_to_array_start:xml_lpm_fuzzer.Action)
446
0
  ::google::protobuf::uint32 cached_has_bits = 0;
447
0
  (void) cached_has_bits;
448
449
0
  switch (action_case()) {
450
0
    case kChunk:
451
0
      ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
452
0
        this->chunk().data(), static_cast<int>(this->chunk().length()),
453
0
        ::google::protobuf::internal::WireFormat::SERIALIZE,
454
0
        "xml_lpm_fuzzer.Action.chunk");
455
0
      target =
456
0
        ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
457
0
          1, this->chunk(), target);
458
0
      break;
459
0
    case kLastChunk:
460
0
      ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
461
0
        this->last_chunk().data(), static_cast<int>(this->last_chunk().length()),
462
0
        ::google::protobuf::internal::WireFormat::SERIALIZE,
463
0
        "xml_lpm_fuzzer.Action.last_chunk");
464
0
      target =
465
0
        ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
466
0
          2, this->last_chunk(), target);
467
0
      break;
468
0
    case kReset:
469
0
      target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->reset(), target);
470
0
      break;
471
0
    case kExternalEntity:
472
0
      ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
473
0
        this->external_entity().data(), static_cast<int>(this->external_entity().length()),
474
0
        ::google::protobuf::internal::WireFormat::SERIALIZE,
475
0
        "xml_lpm_fuzzer.Action.external_entity");
476
0
      target =
477
0
        ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
478
0
          4, this->external_entity(), target);
479
0
      break;
480
0
    default: ;
481
0
  }
482
0
  if (_internal_metadata_.have_unknown_fields()) {
483
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
484
0
        _internal_metadata_.unknown_fields(), target);
485
0
  }
486
  // @@protoc_insertion_point(serialize_to_array_end:xml_lpm_fuzzer.Action)
487
0
  return target;
488
0
}
489
490
0
size_t Action::ByteSizeLong() const {
491
// @@protoc_insertion_point(message_byte_size_start:xml_lpm_fuzzer.Action)
492
0
  size_t total_size = 0;
493
494
0
  if (_internal_metadata_.have_unknown_fields()) {
495
0
    total_size +=
496
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
497
0
        _internal_metadata_.unknown_fields());
498
0
  }
499
0
  switch (action_case()) {
500
    // optional string chunk = 1;
501
0
    case kChunk: {
502
0
      total_size += 1 +
503
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
504
0
          this->chunk());
505
0
      break;
506
0
    }
507
    // optional string last_chunk = 2;
508
0
    case kLastChunk: {
509
0
      total_size += 1 +
510
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
511
0
          this->last_chunk());
512
0
      break;
513
0
    }
514
    // optional bool reset = 3;
515
0
    case kReset: {
516
0
      total_size += 1 + 1;
517
0
      break;
518
0
    }
519
    // optional string external_entity = 4;
520
0
    case kExternalEntity: {
521
0
      total_size += 1 +
522
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
523
0
          this->external_entity());
524
0
      break;
525
0
    }
526
0
    case ACTION_NOT_SET: {
527
0
      break;
528
0
    }
529
0
  }
530
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
531
0
  SetCachedSize(cached_size);
532
0
  return total_size;
533
0
}
534
535
0
void Action::MergeFrom(const ::google::protobuf::Message& from) {
536
// @@protoc_insertion_point(generalized_merge_from_start:xml_lpm_fuzzer.Action)
537
0
  GOOGLE_DCHECK_NE(&from, this);
538
0
  const Action* source =
539
0
      ::google::protobuf::internal::DynamicCastToGenerated<const Action>(
540
0
          &from);
541
0
  if (source == NULL) {
542
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:xml_lpm_fuzzer.Action)
543
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
544
0
  } else {
545
  // @@protoc_insertion_point(generalized_merge_from_cast_success:xml_lpm_fuzzer.Action)
546
0
    MergeFrom(*source);
547
0
  }
548
0
}
549
550
0
void Action::MergeFrom(const Action& from) {
551
// @@protoc_insertion_point(class_specific_merge_from_start:xml_lpm_fuzzer.Action)
552
0
  GOOGLE_DCHECK_NE(&from, this);
553
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
554
0
  ::google::protobuf::uint32 cached_has_bits = 0;
555
0
  (void) cached_has_bits;
556
557
0
  switch (from.action_case()) {
558
0
    case kChunk: {
559
0
      set_chunk(from.chunk());
560
0
      break;
561
0
    }
562
0
    case kLastChunk: {
563
0
      set_last_chunk(from.last_chunk());
564
0
      break;
565
0
    }
566
0
    case kReset: {
567
0
      set_reset(from.reset());
568
0
      break;
569
0
    }
570
0
    case kExternalEntity: {
571
0
      set_external_entity(from.external_entity());
572
0
      break;
573
0
    }
574
0
    case ACTION_NOT_SET: {
575
0
      break;
576
0
    }
577
0
  }
578
0
}
579
580
0
void Action::CopyFrom(const ::google::protobuf::Message& from) {
581
// @@protoc_insertion_point(generalized_copy_from_start:xml_lpm_fuzzer.Action)
582
0
  if (&from == this) return;
583
0
  Clear();
584
0
  MergeFrom(from);
585
0
}
586
587
0
void Action::CopyFrom(const Action& from) {
588
// @@protoc_insertion_point(class_specific_copy_from_start:xml_lpm_fuzzer.Action)
589
0
  if (&from == this) return;
590
0
  Clear();
591
0
  MergeFrom(from);
592
0
}
593
594
0
bool Action::IsInitialized() const {
595
0
  return true;
596
0
}
597
598
0
void Action::Swap(Action* other) {
599
0
  if (other == this) return;
600
0
  InternalSwap(other);
601
0
}
602
0
void Action::InternalSwap(Action* other) {
603
0
  using std::swap;
604
0
  swap(action_, other->action_);
605
0
  swap(_oneof_case_[0], other->_oneof_case_[0]);
606
0
  swap(_has_bits_[0], other->_has_bits_[0]);
607
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
608
0
}
609
610
6.31M
::google::protobuf::Metadata Action::GetMetadata() const {
611
6.31M
  protobuf_xml_5flpm_5ffuzzer_2eproto::protobuf_AssignDescriptorsOnce();
612
6.31M
  return ::protobuf_xml_5flpm_5ffuzzer_2eproto::file_level_metadata[kIndexInFileMessages];
613
6.31M
}
614
615
616
// ===================================================================
617
618
2
void Testcase::InitAsDefaultInstance() {
619
2
}
620
#if !defined(_MSC_VER) || _MSC_VER >= 1900
621
const int Testcase::kEncodingFieldNumber;
622
const int Testcase::kActionsFieldNumber;
623
const int Testcase::kFailAllocationsFieldNumber;
624
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
625
626
Testcase::Testcase()
627
27.5k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
628
27.5k
  ::google::protobuf::internal::InitSCC(
629
27.5k
      &protobuf_xml_5flpm_5ffuzzer_2eproto::scc_info_Testcase.base);
630
27.5k
  SharedCtor();
631
  // @@protoc_insertion_point(constructor:xml_lpm_fuzzer.Testcase)
632
27.5k
}
633
Testcase::Testcase(const Testcase& from)
634
0
  : ::google::protobuf::Message(),
635
0
      _internal_metadata_(NULL),
636
0
      _has_bits_(from._has_bits_),
637
0
      actions_(from.actions_),
638
0
      fail_allocations_(from.fail_allocations_) {
639
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
640
0
  encoding_ = from.encoding_;
641
  // @@protoc_insertion_point(copy_constructor:xml_lpm_fuzzer.Testcase)
642
0
}
643
644
27.5k
void Testcase::SharedCtor() {
645
27.5k
  encoding_ = 0;
646
27.5k
}
647
648
27.5k
Testcase::~Testcase() {
649
  // @@protoc_insertion_point(destructor:xml_lpm_fuzzer.Testcase)
650
27.5k
  SharedDtor();
651
27.5k
}
652
653
27.5k
void Testcase::SharedDtor() {
654
27.5k
}
655
656
0
void Testcase::SetCachedSize(int size) const {
657
0
  _cached_size_.Set(size);
658
0
}
659
0
const ::google::protobuf::Descriptor* Testcase::descriptor() {
660
0
  ::protobuf_xml_5flpm_5ffuzzer_2eproto::protobuf_AssignDescriptorsOnce();
661
0
  return ::protobuf_xml_5flpm_5ffuzzer_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
662
0
}
663
664
0
const Testcase& Testcase::default_instance() {
665
0
  ::google::protobuf::internal::InitSCC(&protobuf_xml_5flpm_5ffuzzer_2eproto::scc_info_Testcase.base);
666
0
  return *internal_default_instance();
667
0
}
668
669
670
55.0k
void Testcase::Clear() {
671
// @@protoc_insertion_point(message_clear_start:xml_lpm_fuzzer.Testcase)
672
55.0k
  ::google::protobuf::uint32 cached_has_bits = 0;
673
  // Prevent compiler warnings about cached_has_bits being unused
674
55.0k
  (void) cached_has_bits;
675
676
55.0k
  actions_.Clear();
677
55.0k
  fail_allocations_.Clear();
678
55.0k
  encoding_ = 0;
679
55.0k
  _has_bits_.Clear();
680
55.0k
  _internal_metadata_.Clear();
681
55.0k
}
682
683
bool Testcase::MergePartialFromCodedStream(
684
0
    ::google::protobuf::io::CodedInputStream* input) {
685
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
686
0
  ::google::protobuf::uint32 tag;
687
  // @@protoc_insertion_point(parse_start:xml_lpm_fuzzer.Testcase)
688
0
  for (;;) {
689
0
    ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
690
0
    tag = p.first;
691
0
    if (!p.second) goto handle_unusual;
692
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
693
      // required .xml_lpm_fuzzer.Encoding encoding = 1;
694
0
      case 1: {
695
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
696
0
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
697
0
          int value;
698
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
699
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
700
0
                 input, &value)));
701
0
          if (::xml_lpm_fuzzer::Encoding_IsValid(value)) {
702
0
            set_encoding(static_cast< ::xml_lpm_fuzzer::Encoding >(value));
703
0
          } else {
704
0
            mutable_unknown_fields()->AddVarint(
705
0
                1, static_cast< ::google::protobuf::uint64>(value));
706
0
          }
707
0
        } else {
708
0
          goto handle_unusual;
709
0
        }
710
0
        break;
711
0
      }
712
713
      // repeated .xml_lpm_fuzzer.Action actions = 2;
714
0
      case 2: {
715
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
716
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
717
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
718
0
                input, add_actions()));
719
0
        } else {
720
0
          goto handle_unusual;
721
0
        }
722
0
        break;
723
0
      }
724
725
      // repeated int32 fail_allocations = 3;
726
0
      case 3: {
727
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
728
0
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
729
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
730
0
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
731
0
                 1, 24u, input, this->mutable_fail_allocations())));
732
0
        } else if (
733
0
            static_cast< ::google::protobuf::uint8>(tag) ==
734
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
735
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
736
0
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
737
0
                 input, this->mutable_fail_allocations())));
738
0
        } else {
739
0
          goto handle_unusual;
740
0
        }
741
0
        break;
742
0
      }
743
744
0
      default: {
745
0
      handle_unusual:
746
0
        if (tag == 0) {
747
0
          goto success;
748
0
        }
749
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
750
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
751
0
        break;
752
0
      }
753
0
    }
754
0
  }
755
0
success:
756
  // @@protoc_insertion_point(parse_success:xml_lpm_fuzzer.Testcase)
757
0
  return true;
758
0
failure:
759
  // @@protoc_insertion_point(parse_failure:xml_lpm_fuzzer.Testcase)
760
0
  return false;
761
0
#undef DO_
762
0
}
763
764
void Testcase::SerializeWithCachedSizes(
765
0
    ::google::protobuf::io::CodedOutputStream* output) const {
766
  // @@protoc_insertion_point(serialize_start:xml_lpm_fuzzer.Testcase)
767
0
  ::google::protobuf::uint32 cached_has_bits = 0;
768
0
  (void) cached_has_bits;
769
770
0
  cached_has_bits = _has_bits_[0];
771
  // required .xml_lpm_fuzzer.Encoding encoding = 1;
772
0
  if (cached_has_bits & 0x00000001u) {
773
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
774
0
      1, this->encoding(), output);
775
0
  }
776
777
  // repeated .xml_lpm_fuzzer.Action actions = 2;
778
0
  for (unsigned int i = 0,
779
0
      n = static_cast<unsigned int>(this->actions_size()); i < n; i++) {
780
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
781
0
      2,
782
0
      this->actions(static_cast<int>(i)),
783
0
      output);
784
0
  }
785
786
  // repeated int32 fail_allocations = 3;
787
0
  for (int i = 0, n = this->fail_allocations_size(); i < n; i++) {
788
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(
789
0
      3, this->fail_allocations(i), output);
790
0
  }
791
792
0
  if (_internal_metadata_.have_unknown_fields()) {
793
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
794
0
        _internal_metadata_.unknown_fields(), output);
795
0
  }
796
  // @@protoc_insertion_point(serialize_end:xml_lpm_fuzzer.Testcase)
797
0
}
798
799
::google::protobuf::uint8* Testcase::InternalSerializeWithCachedSizesToArray(
800
0
    bool deterministic, ::google::protobuf::uint8* target) const {
801
0
  (void)deterministic; // Unused
802
  // @@protoc_insertion_point(serialize_to_array_start:xml_lpm_fuzzer.Testcase)
803
0
  ::google::protobuf::uint32 cached_has_bits = 0;
804
0
  (void) cached_has_bits;
805
806
0
  cached_has_bits = _has_bits_[0];
807
  // required .xml_lpm_fuzzer.Encoding encoding = 1;
808
0
  if (cached_has_bits & 0x00000001u) {
809
0
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
810
0
      1, this->encoding(), target);
811
0
  }
812
813
  // repeated .xml_lpm_fuzzer.Action actions = 2;
814
0
  for (unsigned int i = 0,
815
0
      n = static_cast<unsigned int>(this->actions_size()); i < n; i++) {
816
0
    target = ::google::protobuf::internal::WireFormatLite::
817
0
      InternalWriteMessageToArray(
818
0
        2, this->actions(static_cast<int>(i)), deterministic, target);
819
0
  }
820
821
  // repeated int32 fail_allocations = 3;
822
0
  target = ::google::protobuf::internal::WireFormatLite::
823
0
    WriteInt32ToArray(3, this->fail_allocations_, target);
824
825
0
  if (_internal_metadata_.have_unknown_fields()) {
826
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
827
0
        _internal_metadata_.unknown_fields(), target);
828
0
  }
829
  // @@protoc_insertion_point(serialize_to_array_end:xml_lpm_fuzzer.Testcase)
830
0
  return target;
831
0
}
832
833
0
size_t Testcase::ByteSizeLong() const {
834
// @@protoc_insertion_point(message_byte_size_start:xml_lpm_fuzzer.Testcase)
835
0
  size_t total_size = 0;
836
837
0
  if (_internal_metadata_.have_unknown_fields()) {
838
0
    total_size +=
839
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
840
0
        _internal_metadata_.unknown_fields());
841
0
  }
842
  // required .xml_lpm_fuzzer.Encoding encoding = 1;
843
0
  if (has_encoding()) {
844
0
    total_size += 1 +
845
0
      ::google::protobuf::internal::WireFormatLite::EnumSize(this->encoding());
846
0
  }
847
  // repeated .xml_lpm_fuzzer.Action actions = 2;
848
0
  {
849
0
    unsigned int count = static_cast<unsigned int>(this->actions_size());
850
0
    total_size += 1UL * count;
851
0
    for (unsigned int i = 0; i < count; i++) {
852
0
      total_size +=
853
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
854
0
          this->actions(static_cast<int>(i)));
855
0
    }
856
0
  }
857
858
  // repeated int32 fail_allocations = 3;
859
0
  {
860
0
    size_t data_size = ::google::protobuf::internal::WireFormatLite::
861
0
      Int32Size(this->fail_allocations_);
862
0
    total_size += 1 *
863
0
                  ::google::protobuf::internal::FromIntSize(this->fail_allocations_size());
864
0
    total_size += data_size;
865
0
  }
866
867
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
868
0
  SetCachedSize(cached_size);
869
0
  return total_size;
870
0
}
871
872
0
void Testcase::MergeFrom(const ::google::protobuf::Message& from) {
873
// @@protoc_insertion_point(generalized_merge_from_start:xml_lpm_fuzzer.Testcase)
874
0
  GOOGLE_DCHECK_NE(&from, this);
875
0
  const Testcase* source =
876
0
      ::google::protobuf::internal::DynamicCastToGenerated<const Testcase>(
877
0
          &from);
878
0
  if (source == NULL) {
879
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:xml_lpm_fuzzer.Testcase)
880
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
881
0
  } else {
882
  // @@protoc_insertion_point(generalized_merge_from_cast_success:xml_lpm_fuzzer.Testcase)
883
0
    MergeFrom(*source);
884
0
  }
885
0
}
886
887
0
void Testcase::MergeFrom(const Testcase& from) {
888
// @@protoc_insertion_point(class_specific_merge_from_start:xml_lpm_fuzzer.Testcase)
889
0
  GOOGLE_DCHECK_NE(&from, this);
890
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
891
0
  ::google::protobuf::uint32 cached_has_bits = 0;
892
0
  (void) cached_has_bits;
893
894
0
  actions_.MergeFrom(from.actions_);
895
0
  fail_allocations_.MergeFrom(from.fail_allocations_);
896
0
  if (from.has_encoding()) {
897
0
    set_encoding(from.encoding());
898
0
  }
899
0
}
900
901
0
void Testcase::CopyFrom(const ::google::protobuf::Message& from) {
902
// @@protoc_insertion_point(generalized_copy_from_start:xml_lpm_fuzzer.Testcase)
903
0
  if (&from == this) return;
904
0
  Clear();
905
0
  MergeFrom(from);
906
0
}
907
908
0
void Testcase::CopyFrom(const Testcase& from) {
909
// @@protoc_insertion_point(class_specific_copy_from_start:xml_lpm_fuzzer.Testcase)
910
0
  if (&from == this) return;
911
0
  Clear();
912
0
  MergeFrom(from);
913
0
}
914
915
27.5k
bool Testcase::IsInitialized() const {
916
27.5k
  if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
917
27.5k
  return true;
918
27.5k
}
919
920
0
void Testcase::Swap(Testcase* other) {
921
0
  if (other == this) return;
922
0
  InternalSwap(other);
923
0
}
924
0
void Testcase::InternalSwap(Testcase* other) {
925
0
  using std::swap;
926
0
  CastToBase(&actions_)->InternalSwap(CastToBase(&other->actions_));
927
0
  fail_allocations_.InternalSwap(&other->fail_allocations_);
928
0
  swap(encoding_, other->encoding_);
929
0
  swap(_has_bits_[0], other->_has_bits_[0]);
930
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
931
0
}
932
933
2.83M
::google::protobuf::Metadata Testcase::GetMetadata() const {
934
2.83M
  protobuf_xml_5flpm_5ffuzzer_2eproto::protobuf_AssignDescriptorsOnce();
935
2.83M
  return ::protobuf_xml_5flpm_5ffuzzer_2eproto::file_level_metadata[kIndexInFileMessages];
936
2.83M
}
937
938
939
// @@protoc_insertion_point(namespace_scope)
940
}  // namespace xml_lpm_fuzzer
941
namespace google {
942
namespace protobuf {
943
849k
template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::xml_lpm_fuzzer::Action* Arena::CreateMaybeMessage< ::xml_lpm_fuzzer::Action >(Arena* arena) {
944
849k
  return Arena::CreateInternal< ::xml_lpm_fuzzer::Action >(arena);
945
849k
}
946
0
template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::xml_lpm_fuzzer::Testcase* Arena::CreateMaybeMessage< ::xml_lpm_fuzzer::Testcase >(Arena* arena) {
947
0
  return Arena::CreateInternal< ::xml_lpm_fuzzer::Testcase >(arena);
948
0
}
949
}  // namespace protobuf
950
}  // namespace google
951
952
// @@protoc_insertion_point(global_scope)