Coverage Report

Created: 2023-03-26 07:33

/src/genfiles/gif_fuzz_proto.pb.cc
Line
Count
Source (jump to first uncovered line)
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: gif_fuzz_proto.proto
3
4
#include "gif_fuzz_proto.pb.h"
5
6
#include <algorithm>
7
8
#include <google/protobuf/io/coded_stream.h>
9
#include <google/protobuf/extension_set.h>
10
#include <google/protobuf/wire_format_lite.h>
11
#include <google/protobuf/descriptor.h>
12
#include <google/protobuf/generated_message_reflection.h>
13
#include <google/protobuf/reflection_ops.h>
14
#include <google/protobuf/wire_format.h>
15
// @@protoc_insertion_point(includes)
16
#include <google/protobuf/port_def.inc>
17
18
PROTOBUF_PRAGMA_INIT_SEG
19
20
namespace _pb = ::PROTOBUF_NAMESPACE_ID;
21
namespace _pbi = _pb::internal;
22
23
namespace gifProtoFuzzer {
24
PROTOBUF_CONSTEXPR LogicalScreenDescriptor::LogicalScreenDescriptor(
25
    ::_pbi::ConstantInitialized): _impl_{
26
    /*decltype(_impl_._has_bits_)*/{}
27
  , /*decltype(_impl_._cached_size_)*/{}
28
  , /*decltype(_impl_.screenwidth_)*/0u
29
  , /*decltype(_impl_.screenheight_)*/0u
30
  , /*decltype(_impl_.packed_)*/0u
31
  , /*decltype(_impl_.backgroundcolor_)*/0u
32
  , /*decltype(_impl_.aspectratio_)*/0u} {}
33
struct LogicalScreenDescriptorDefaultTypeInternal {
34
  PROTOBUF_CONSTEXPR LogicalScreenDescriptorDefaultTypeInternal()
35
0
      : _instance(::_pbi::ConstantInitialized{}) {}
36
0
  ~LogicalScreenDescriptorDefaultTypeInternal() {}
37
  union {
38
    LogicalScreenDescriptor _instance;
39
  };
40
};
41
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LogicalScreenDescriptorDefaultTypeInternal _LogicalScreenDescriptor_default_instance_;
42
PROTOBUF_CONSTEXPR GlobalColorTable::GlobalColorTable(
43
    ::_pbi::ConstantInitialized): _impl_{
44
    /*decltype(_impl_._has_bits_)*/{}
45
  , /*decltype(_impl_._cached_size_)*/{}
46
  , /*decltype(_impl_.colors_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}} {}
47
struct GlobalColorTableDefaultTypeInternal {
48
  PROTOBUF_CONSTEXPR GlobalColorTableDefaultTypeInternal()
49
0
      : _instance(::_pbi::ConstantInitialized{}) {}
50
0
  ~GlobalColorTableDefaultTypeInternal() {}
51
  union {
52
    GlobalColorTable _instance;
53
  };
54
};
55
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GlobalColorTableDefaultTypeInternal _GlobalColorTable_default_instance_;
56
PROTOBUF_CONSTEXPR ImageDescriptor::ImageDescriptor(
57
    ::_pbi::ConstantInitialized): _impl_{
58
    /*decltype(_impl_._has_bits_)*/{}
59
  , /*decltype(_impl_._cached_size_)*/{}
60
  , /*decltype(_impl_.seperator_)*/0u
61
  , /*decltype(_impl_.left_)*/0u
62
  , /*decltype(_impl_.top_)*/0u
63
  , /*decltype(_impl_.width_)*/0u
64
  , /*decltype(_impl_.height_)*/0u
65
  , /*decltype(_impl_.packed_)*/0u} {}
66
struct ImageDescriptorDefaultTypeInternal {
67
  PROTOBUF_CONSTEXPR ImageDescriptorDefaultTypeInternal()
68
0
      : _instance(::_pbi::ConstantInitialized{}) {}
69
0
  ~ImageDescriptorDefaultTypeInternal() {}
70
  union {
71
    ImageDescriptor _instance;
72
  };
73
};
74
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ImageDescriptorDefaultTypeInternal _ImageDescriptor_default_instance_;
75
PROTOBUF_CONSTEXPR GraphicControlExtension::GraphicControlExtension(
76
    ::_pbi::ConstantInitialized): _impl_{
77
    /*decltype(_impl_._has_bits_)*/{}
78
  , /*decltype(_impl_._cached_size_)*/{}
79
  , /*decltype(_impl_.packed_)*/0u
80
  , /*decltype(_impl_.delaytime_)*/0u
81
  , /*decltype(_impl_.transparentcolorindex_)*/0u} {}
82
struct GraphicControlExtensionDefaultTypeInternal {
83
  PROTOBUF_CONSTEXPR GraphicControlExtensionDefaultTypeInternal()
84
0
      : _instance(::_pbi::ConstantInitialized{}) {}
85
0
  ~GraphicControlExtensionDefaultTypeInternal() {}
86
  union {
87
    GraphicControlExtension _instance;
88
  };
89
};
90
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GraphicControlExtensionDefaultTypeInternal _GraphicControlExtension_default_instance_;
91
PROTOBUF_CONSTEXPR PlainTextExtension::PlainTextExtension(
92
    ::_pbi::ConstantInitialized): _impl_{
93
    /*decltype(_impl_._has_bits_)*/{}
94
  , /*decltype(_impl_._cached_size_)*/{}
95
  , /*decltype(_impl_.subs_)*/{}
96
  , /*decltype(_impl_.gcext_)*/nullptr} {}
97
struct PlainTextExtensionDefaultTypeInternal {
98
  PROTOBUF_CONSTEXPR PlainTextExtensionDefaultTypeInternal()
99
0
      : _instance(::_pbi::ConstantInitialized{}) {}
100
0
  ~PlainTextExtensionDefaultTypeInternal() {}
101
  union {
102
    PlainTextExtension _instance;
103
  };
104
};
105
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PlainTextExtensionDefaultTypeInternal _PlainTextExtension_default_instance_;
106
PROTOBUF_CONSTEXPR LocalColorTable::LocalColorTable(
107
    ::_pbi::ConstantInitialized): _impl_{
108
    /*decltype(_impl_._has_bits_)*/{}
109
  , /*decltype(_impl_._cached_size_)*/{}
110
  , /*decltype(_impl_.colors_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}} {}
111
struct LocalColorTableDefaultTypeInternal {
112
  PROTOBUF_CONSTEXPR LocalColorTableDefaultTypeInternal()
113
0
      : _instance(::_pbi::ConstantInitialized{}) {}
114
0
  ~LocalColorTableDefaultTypeInternal() {}
115
  union {
116
    LocalColorTable _instance;
117
  };
118
};
119
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LocalColorTableDefaultTypeInternal _LocalColorTable_default_instance_;
120
PROTOBUF_CONSTEXPR SubBlock::SubBlock(
121
    ::_pbi::ConstantInitialized): _impl_{
122
    /*decltype(_impl_._has_bits_)*/{}
123
  , /*decltype(_impl_._cached_size_)*/{}
124
  , /*decltype(_impl_.data_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
125
  , /*decltype(_impl_.len_)*/0u} {}
126
struct SubBlockDefaultTypeInternal {
127
  PROTOBUF_CONSTEXPR SubBlockDefaultTypeInternal()
128
0
      : _instance(::_pbi::ConstantInitialized{}) {}
129
0
  ~SubBlockDefaultTypeInternal() {}
130
  union {
131
    SubBlock _instance;
132
  };
133
};
134
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubBlockDefaultTypeInternal _SubBlock_default_instance_;
135
PROTOBUF_CONSTEXPR ImageData::ImageData(
136
    ::_pbi::ConstantInitialized): _impl_{
137
    /*decltype(_impl_._has_bits_)*/{}
138
  , /*decltype(_impl_._cached_size_)*/{}
139
  , /*decltype(_impl_.subs_)*/{}
140
  , /*decltype(_impl_.lzw_)*/0u} {}
141
struct ImageDataDefaultTypeInternal {
142
  PROTOBUF_CONSTEXPR ImageDataDefaultTypeInternal()
143
0
      : _instance(::_pbi::ConstantInitialized{}) {}
144
0
  ~ImageDataDefaultTypeInternal() {}
145
  union {
146
    ImageData _instance;
147
  };
148
};
149
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ImageDataDefaultTypeInternal _ImageData_default_instance_;
150
PROTOBUF_CONSTEXPR BasicChunk::BasicChunk(
151
    ::_pbi::ConstantInitialized): _impl_{
152
    /*decltype(_impl_._has_bits_)*/{}
153
  , /*decltype(_impl_._cached_size_)*/{}
154
  , /*decltype(_impl_.imdescriptor_)*/nullptr
155
  , /*decltype(_impl_.lct_)*/nullptr
156
  , /*decltype(_impl_.img_)*/nullptr
157
  , /*decltype(_impl_.gcext_)*/nullptr} {}
158
struct BasicChunkDefaultTypeInternal {
159
  PROTOBUF_CONSTEXPR BasicChunkDefaultTypeInternal()
160
0
      : _instance(::_pbi::ConstantInitialized{}) {}
161
0
  ~BasicChunkDefaultTypeInternal() {}
162
  union {
163
    BasicChunk _instance;
164
  };
165
};
166
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BasicChunkDefaultTypeInternal _BasicChunk_default_instance_;
167
PROTOBUF_CONSTEXPR ApplicationExtension::ApplicationExtension(
168
    ::_pbi::ConstantInitialized): _impl_{
169
    /*decltype(_impl_._has_bits_)*/{}
170
  , /*decltype(_impl_._cached_size_)*/{}
171
  , /*decltype(_impl_.subs_)*/{}
172
  , /*decltype(_impl_.appid_)*/uint64_t{0u}} {}
173
struct ApplicationExtensionDefaultTypeInternal {
174
  PROTOBUF_CONSTEXPR ApplicationExtensionDefaultTypeInternal()
175
0
      : _instance(::_pbi::ConstantInitialized{}) {}
176
0
  ~ApplicationExtensionDefaultTypeInternal() {}
177
  union {
178
    ApplicationExtension _instance;
179
  };
180
};
181
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ApplicationExtensionDefaultTypeInternal _ApplicationExtension_default_instance_;
182
PROTOBUF_CONSTEXPR CommentExtension::CommentExtension(
183
    ::_pbi::ConstantInitialized): _impl_{
184
    /*decltype(_impl_.subs_)*/{}
185
  , /*decltype(_impl_._cached_size_)*/{}} {}
186
struct CommentExtensionDefaultTypeInternal {
187
  PROTOBUF_CONSTEXPR CommentExtensionDefaultTypeInternal()
188
0
      : _instance(::_pbi::ConstantInitialized{}) {}
189
0
  ~CommentExtensionDefaultTypeInternal() {}
190
  union {
191
    CommentExtension _instance;
192
  };
193
};
194
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CommentExtensionDefaultTypeInternal _CommentExtension_default_instance_;
195
PROTOBUF_CONSTEXPR Header::Header(
196
    ::_pbi::ConstantInitialized): _impl_{
197
    /*decltype(_impl_._has_bits_)*/{}
198
  , /*decltype(_impl_._cached_size_)*/{}
199
  , /*decltype(_impl_.ver_)*/1} {}
200
struct HeaderDefaultTypeInternal {
201
  PROTOBUF_CONSTEXPR HeaderDefaultTypeInternal()
202
0
      : _instance(::_pbi::ConstantInitialized{}) {}
203
0
  ~HeaderDefaultTypeInternal() {}
204
  union {
205
    Header _instance;
206
  };
207
};
208
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HeaderDefaultTypeInternal _Header_default_instance_;
209
PROTOBUF_CONSTEXPR Trailer::Trailer(
210
    ::_pbi::ConstantInitialized) {}
211
struct TrailerDefaultTypeInternal {
212
  PROTOBUF_CONSTEXPR TrailerDefaultTypeInternal()
213
0
      : _instance(::_pbi::ConstantInitialized{}) {}
214
0
  ~TrailerDefaultTypeInternal() {}
215
  union {
216
    Trailer _instance;
217
  };
218
};
219
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TrailerDefaultTypeInternal _Trailer_default_instance_;
220
PROTOBUF_CONSTEXPR ImageChunk::ImageChunk(
221
    ::_pbi::ConstantInitialized): _impl_{
222
    /*decltype(_impl_.chunk_oneof_)*/{}
223
  , /*decltype(_impl_._cached_size_)*/{}
224
  , /*decltype(_impl_._oneof_case_)*/{}} {}
225
struct ImageChunkDefaultTypeInternal {
226
  PROTOBUF_CONSTEXPR ImageChunkDefaultTypeInternal()
227
0
      : _instance(::_pbi::ConstantInitialized{}) {}
228
0
  ~ImageChunkDefaultTypeInternal() {}
229
  union {
230
    ImageChunk _instance;
231
  };
232
};
233
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ImageChunkDefaultTypeInternal _ImageChunk_default_instance_;
234
PROTOBUF_CONSTEXPR GifProto::GifProto(
235
    ::_pbi::ConstantInitialized): _impl_{
236
    /*decltype(_impl_._has_bits_)*/{}
237
  , /*decltype(_impl_._cached_size_)*/{}
238
  , /*decltype(_impl_.chunks_)*/{}
239
  , /*decltype(_impl_.header_)*/nullptr
240
  , /*decltype(_impl_.lsd_)*/nullptr
241
  , /*decltype(_impl_.gct_)*/nullptr
242
  , /*decltype(_impl_.trailer_)*/nullptr} {}
243
struct GifProtoDefaultTypeInternal {
244
  PROTOBUF_CONSTEXPR GifProtoDefaultTypeInternal()
245
0
      : _instance(::_pbi::ConstantInitialized{}) {}
246
0
  ~GifProtoDefaultTypeInternal() {}
247
  union {
248
    GifProto _instance;
249
  };
250
};
251
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GifProtoDefaultTypeInternal _GifProto_default_instance_;
252
}  // namespace gifProtoFuzzer
253
static ::_pb::Metadata file_level_metadata_gif_5ffuzz_5fproto_2eproto[15];
254
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_gif_5ffuzz_5fproto_2eproto[1];
255
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_gif_5ffuzz_5fproto_2eproto = nullptr;
256
257
const uint32_t TableStruct_gif_5ffuzz_5fproto_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
258
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::LogicalScreenDescriptor, _impl_._has_bits_),
259
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::LogicalScreenDescriptor, _internal_metadata_),
260
  ~0u,  // no _extensions_
261
  ~0u,  // no _oneof_case_
262
  ~0u,  // no _weak_field_map_
263
  ~0u,  // no _inlined_string_donated_
264
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::LogicalScreenDescriptor, _impl_.screenwidth_),
265
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::LogicalScreenDescriptor, _impl_.screenheight_),
266
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::LogicalScreenDescriptor, _impl_.packed_),
267
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::LogicalScreenDescriptor, _impl_.backgroundcolor_),
268
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::LogicalScreenDescriptor, _impl_.aspectratio_),
269
  0,
270
  1,
271
  2,
272
  3,
273
  4,
274
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::GlobalColorTable, _impl_._has_bits_),
275
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::GlobalColorTable, _internal_metadata_),
276
  ~0u,  // no _extensions_
277
  ~0u,  // no _oneof_case_
278
  ~0u,  // no _weak_field_map_
279
  ~0u,  // no _inlined_string_donated_
280
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::GlobalColorTable, _impl_.colors_),
281
  0,
282
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::ImageDescriptor, _impl_._has_bits_),
283
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::ImageDescriptor, _internal_metadata_),
284
  ~0u,  // no _extensions_
285
  ~0u,  // no _oneof_case_
286
  ~0u,  // no _weak_field_map_
287
  ~0u,  // no _inlined_string_donated_
288
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::ImageDescriptor, _impl_.seperator_),
289
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::ImageDescriptor, _impl_.left_),
290
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::ImageDescriptor, _impl_.top_),
291
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::ImageDescriptor, _impl_.width_),
292
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::ImageDescriptor, _impl_.height_),
293
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::ImageDescriptor, _impl_.packed_),
294
  0,
295
  1,
296
  2,
297
  3,
298
  4,
299
  5,
300
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::GraphicControlExtension, _impl_._has_bits_),
301
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::GraphicControlExtension, _internal_metadata_),
302
  ~0u,  // no _extensions_
303
  ~0u,  // no _oneof_case_
304
  ~0u,  // no _weak_field_map_
305
  ~0u,  // no _inlined_string_donated_
306
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::GraphicControlExtension, _impl_.packed_),
307
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::GraphicControlExtension, _impl_.delaytime_),
308
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::GraphicControlExtension, _impl_.transparentcolorindex_),
309
  0,
310
  1,
311
  2,
312
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::PlainTextExtension, _impl_._has_bits_),
313
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::PlainTextExtension, _internal_metadata_),
314
  ~0u,  // no _extensions_
315
  ~0u,  // no _oneof_case_
316
  ~0u,  // no _weak_field_map_
317
  ~0u,  // no _inlined_string_donated_
318
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::PlainTextExtension, _impl_.subs_),
319
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::PlainTextExtension, _impl_.gcext_),
320
  ~0u,
321
  0,
322
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::LocalColorTable, _impl_._has_bits_),
323
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::LocalColorTable, _internal_metadata_),
324
  ~0u,  // no _extensions_
325
  ~0u,  // no _oneof_case_
326
  ~0u,  // no _weak_field_map_
327
  ~0u,  // no _inlined_string_donated_
328
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::LocalColorTable, _impl_.colors_),
329
  0,
330
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::SubBlock, _impl_._has_bits_),
331
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::SubBlock, _internal_metadata_),
332
  ~0u,  // no _extensions_
333
  ~0u,  // no _oneof_case_
334
  ~0u,  // no _weak_field_map_
335
  ~0u,  // no _inlined_string_donated_
336
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::SubBlock, _impl_.len_),
337
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::SubBlock, _impl_.data_),
338
  1,
339
  0,
340
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::ImageData, _impl_._has_bits_),
341
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::ImageData, _internal_metadata_),
342
  ~0u,  // no _extensions_
343
  ~0u,  // no _oneof_case_
344
  ~0u,  // no _weak_field_map_
345
  ~0u,  // no _inlined_string_donated_
346
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::ImageData, _impl_.lzw_),
347
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::ImageData, _impl_.subs_),
348
  0,
349
  ~0u,
350
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::BasicChunk, _impl_._has_bits_),
351
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::BasicChunk, _internal_metadata_),
352
  ~0u,  // no _extensions_
353
  ~0u,  // no _oneof_case_
354
  ~0u,  // no _weak_field_map_
355
  ~0u,  // no _inlined_string_donated_
356
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::BasicChunk, _impl_.imdescriptor_),
357
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::BasicChunk, _impl_.lct_),
358
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::BasicChunk, _impl_.img_),
359
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::BasicChunk, _impl_.gcext_),
360
  0,
361
  1,
362
  2,
363
  3,
364
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::ApplicationExtension, _impl_._has_bits_),
365
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::ApplicationExtension, _internal_metadata_),
366
  ~0u,  // no _extensions_
367
  ~0u,  // no _oneof_case_
368
  ~0u,  // no _weak_field_map_
369
  ~0u,  // no _inlined_string_donated_
370
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::ApplicationExtension, _impl_.appid_),
371
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::ApplicationExtension, _impl_.subs_),
372
  0,
373
  ~0u,
374
  ~0u,  // no _has_bits_
375
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::CommentExtension, _internal_metadata_),
376
  ~0u,  // no _extensions_
377
  ~0u,  // no _oneof_case_
378
  ~0u,  // no _weak_field_map_
379
  ~0u,  // no _inlined_string_donated_
380
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::CommentExtension, _impl_.subs_),
381
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::Header, _impl_._has_bits_),
382
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::Header, _internal_metadata_),
383
  ~0u,  // no _extensions_
384
  ~0u,  // no _oneof_case_
385
  ~0u,  // no _weak_field_map_
386
  ~0u,  // no _inlined_string_donated_
387
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::Header, _impl_.ver_),
388
  0,
389
  ~0u,  // no _has_bits_
390
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::Trailer, _internal_metadata_),
391
  ~0u,  // no _extensions_
392
  ~0u,  // no _oneof_case_
393
  ~0u,  // no _weak_field_map_
394
  ~0u,  // no _inlined_string_donated_
395
  ~0u,  // no _has_bits_
396
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::ImageChunk, _internal_metadata_),
397
  ~0u,  // no _extensions_
398
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::ImageChunk, _impl_._oneof_case_[0]),
399
  ~0u,  // no _weak_field_map_
400
  ~0u,  // no _inlined_string_donated_
401
  ::_pbi::kInvalidFieldOffsetTag,
402
  ::_pbi::kInvalidFieldOffsetTag,
403
  ::_pbi::kInvalidFieldOffsetTag,
404
  ::_pbi::kInvalidFieldOffsetTag,
405
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::ImageChunk, _impl_.chunk_oneof_),
406
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::GifProto, _impl_._has_bits_),
407
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::GifProto, _internal_metadata_),
408
  ~0u,  // no _extensions_
409
  ~0u,  // no _oneof_case_
410
  ~0u,  // no _weak_field_map_
411
  ~0u,  // no _inlined_string_donated_
412
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::GifProto, _impl_.header_),
413
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::GifProto, _impl_.lsd_),
414
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::GifProto, _impl_.gct_),
415
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::GifProto, _impl_.chunks_),
416
  PROTOBUF_FIELD_OFFSET(::gifProtoFuzzer::GifProto, _impl_.trailer_),
417
  0,
418
  1,
419
  2,
420
  ~0u,
421
  3,
422
};
423
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
424
  { 0, 11, -1, sizeof(::gifProtoFuzzer::LogicalScreenDescriptor)},
425
  { 16, 23, -1, sizeof(::gifProtoFuzzer::GlobalColorTable)},
426
  { 24, 36, -1, sizeof(::gifProtoFuzzer::ImageDescriptor)},
427
  { 42, 51, -1, sizeof(::gifProtoFuzzer::GraphicControlExtension)},
428
  { 54, 62, -1, sizeof(::gifProtoFuzzer::PlainTextExtension)},
429
  { 64, 71, -1, sizeof(::gifProtoFuzzer::LocalColorTable)},
430
  { 72, 80, -1, sizeof(::gifProtoFuzzer::SubBlock)},
431
  { 82, 90, -1, sizeof(::gifProtoFuzzer::ImageData)},
432
  { 92, 102, -1, sizeof(::gifProtoFuzzer::BasicChunk)},
433
  { 106, 114, -1, sizeof(::gifProtoFuzzer::ApplicationExtension)},
434
  { 116, -1, -1, sizeof(::gifProtoFuzzer::CommentExtension)},
435
  { 123, 130, -1, sizeof(::gifProtoFuzzer::Header)},
436
  { 131, -1, -1, sizeof(::gifProtoFuzzer::Trailer)},
437
  { 137, -1, -1, sizeof(::gifProtoFuzzer::ImageChunk)},
438
  { 148, 159, -1, sizeof(::gifProtoFuzzer::GifProto)},
439
};
440
441
static const ::_pb::Message* const file_default_instances[] = {
442
  &::gifProtoFuzzer::_LogicalScreenDescriptor_default_instance_._instance,
443
  &::gifProtoFuzzer::_GlobalColorTable_default_instance_._instance,
444
  &::gifProtoFuzzer::_ImageDescriptor_default_instance_._instance,
445
  &::gifProtoFuzzer::_GraphicControlExtension_default_instance_._instance,
446
  &::gifProtoFuzzer::_PlainTextExtension_default_instance_._instance,
447
  &::gifProtoFuzzer::_LocalColorTable_default_instance_._instance,
448
  &::gifProtoFuzzer::_SubBlock_default_instance_._instance,
449
  &::gifProtoFuzzer::_ImageData_default_instance_._instance,
450
  &::gifProtoFuzzer::_BasicChunk_default_instance_._instance,
451
  &::gifProtoFuzzer::_ApplicationExtension_default_instance_._instance,
452
  &::gifProtoFuzzer::_CommentExtension_default_instance_._instance,
453
  &::gifProtoFuzzer::_Header_default_instance_._instance,
454
  &::gifProtoFuzzer::_Trailer_default_instance_._instance,
455
  &::gifProtoFuzzer::_ImageChunk_default_instance_._instance,
456
  &::gifProtoFuzzer::_GifProto_default_instance_._instance,
457
};
458
459
const char descriptor_table_protodef_gif_5ffuzz_5fproto_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
460
  "\n\024gif_fuzz_proto.proto\022\016gifProtoFuzzer\"\202"
461
  "\001\n\027LogicalScreenDescriptor\022\023\n\013ScreenWidt"
462
  "h\030\001 \002(\r\022\024\n\014ScreenHeight\030\002 \002(\r\022\016\n\006Packed\030"
463
  "\003 \002(\r\022\027\n\017BackgroundColor\030\004 \002(\r\022\023\n\013Aspect"
464
  "Ratio\030\005 \002(\r\"\"\n\020GlobalColorTable\022\016\n\006color"
465
  "s\030\001 \002(\014\"n\n\017ImageDescriptor\022\021\n\tSeperator\030"
466
  "\001 \002(\r\022\014\n\004Left\030\002 \002(\r\022\013\n\003Top\030\003 \002(\r\022\r\n\005Widt"
467
  "h\030\004 \002(\r\022\016\n\006Height\030\005 \002(\r\022\016\n\006Packed\030\006 \002(\r\""
468
  "[\n\027GraphicControlExtension\022\016\n\006Packed\030\001 \002"
469
  "(\r\022\021\n\tDelayTime\030\002 \002(\r\022\035\n\025transparentColo"
470
  "rIndex\030\003 \002(\r\"t\n\022PlainTextExtension\022&\n\004su"
471
  "bs\030\001 \003(\0132\030.gifProtoFuzzer.SubBlock\0226\n\005gc"
472
  "Ext\030\002 \001(\0132\'.gifProtoFuzzer.GraphicContro"
473
  "lExtension\"!\n\017LocalColorTable\022\016\n\006colors\030"
474
  "\001 \002(\014\"%\n\010SubBlock\022\013\n\003len\030\001 \002(\r\022\014\n\004data\030\002"
475
  " \002(\014\"@\n\tImageData\022\013\n\003lzw\030\001 \002(\r\022&\n\004subs\030\002"
476
  " \003(\0132\030.gifProtoFuzzer.SubBlock\"\321\001\n\nBasic"
477
  "Chunk\0225\n\014imDescriptor\030\001 \002(\0132\037.gifProtoFu"
478
  "zzer.ImageDescriptor\022,\n\003lct\030\002 \002(\0132\037.gifP"
479
  "rotoFuzzer.LocalColorTable\022&\n\003img\030\003 \002(\0132"
480
  "\031.gifProtoFuzzer.ImageData\0226\n\005gcExt\030\004 \001("
481
  "\0132\'.gifProtoFuzzer.GraphicControlExtensi"
482
  "on\"M\n\024ApplicationExtension\022\r\n\005appid\030\001 \002("
483
  "\006\022&\n\004subs\030\002 \003(\0132\030.gifProtoFuzzer.SubBloc"
484
  "k\":\n\020CommentExtension\022&\n\004subs\030\001 \003(\0132\030.gi"
485
  "fProtoFuzzer.SubBlock\"[\n\006Header\022+\n\003ver\030\001"
486
  " \002(\0162\036.gifProtoFuzzer.Header.Version\"$\n\007"
487
  "Version\022\007\n\003ENA\020\001\022\007\n\003ESA\020\002\022\007\n\003INV\020\003\"\t\n\007Tr"
488
  "ailer\"\355\001\n\nImageChunk\022+\n\005basic\030\001 \001(\0132\032.gi"
489
  "fProtoFuzzer.BasicChunkH\000\0227\n\tplaintext\030\002"
490
  " \001(\0132\".gifProtoFuzzer.PlainTextExtension"
491
  "H\000\0226\n\006appExt\030\003 \001(\0132$.gifProtoFuzzer.Appl"
492
  "icationExtensionH\000\0222\n\006comExt\030\004 \001(\0132 .gif"
493
  "ProtoFuzzer.CommentExtensionH\000B\r\n\013chunk_"
494
  "oneof\"\355\001\n\010GifProto\022&\n\006header\030\001 \002(\0132\026.gif"
495
  "ProtoFuzzer.Header\0224\n\003lsd\030\002 \002(\0132\'.gifPro"
496
  "toFuzzer.LogicalScreenDescriptor\022-\n\003gct\030"
497
  "\003 \002(\0132 .gifProtoFuzzer.GlobalColorTable\022"
498
  "*\n\006chunks\030\004 \003(\0132\032.gifProtoFuzzer.ImageCh"
499
  "unk\022(\n\007trailer\030\005 \002(\0132\027.gifProtoFuzzer.Tr"
500
  "ailer"
501
  ;
502
static ::_pbi::once_flag descriptor_table_gif_5ffuzz_5fproto_2eproto_once;
503
const ::_pbi::DescriptorTable descriptor_table_gif_5ffuzz_5fproto_2eproto = {
504
    false, false, 1605, descriptor_table_protodef_gif_5ffuzz_5fproto_2eproto,
505
    "gif_fuzz_proto.proto",
506
    &descriptor_table_gif_5ffuzz_5fproto_2eproto_once, nullptr, 0, 15,
507
    schemas, file_default_instances, TableStruct_gif_5ffuzz_5fproto_2eproto::offsets,
508
    file_level_metadata_gif_5ffuzz_5fproto_2eproto, file_level_enum_descriptors_gif_5ffuzz_5fproto_2eproto,
509
    file_level_service_descriptors_gif_5ffuzz_5fproto_2eproto,
510
};
511
1
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_gif_5ffuzz_5fproto_2eproto_getter() {
512
1
  return &descriptor_table_gif_5ffuzz_5fproto_2eproto;
513
1
}
514
515
// Force running AddDescriptors() at dynamic initialization time.
516
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_gif_5ffuzz_5fproto_2eproto(&descriptor_table_gif_5ffuzz_5fproto_2eproto);
517
namespace gifProtoFuzzer {
518
0
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Header_Version_descriptor() {
519
0
  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_gif_5ffuzz_5fproto_2eproto);
520
0
  return file_level_enum_descriptors_gif_5ffuzz_5fproto_2eproto[0];
521
0
}
522
0
bool Header_Version_IsValid(int value) {
523
0
  switch (value) {
524
0
    case 1:
525
0
    case 2:
526
0
    case 3:
527
0
      return true;
528
0
    default:
529
0
      return false;
530
0
  }
531
0
}
532
533
#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
534
constexpr Header_Version Header::ENA;
535
constexpr Header_Version Header::ESA;
536
constexpr Header_Version Header::INV;
537
constexpr Header_Version Header::Version_MIN;
538
constexpr Header_Version Header::Version_MAX;
539
constexpr int Header::Version_ARRAYSIZE;
540
#endif  // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
541
542
// ===================================================================
543
544
class LogicalScreenDescriptor::_Internal {
545
 public:
546
  using HasBits = decltype(std::declval<LogicalScreenDescriptor>()._impl_._has_bits_);
547
0
  static void set_has_screenwidth(HasBits* has_bits) {
548
0
    (*has_bits)[0] |= 1u;
549
0
  }
550
0
  static void set_has_screenheight(HasBits* has_bits) {
551
0
    (*has_bits)[0] |= 2u;
552
0
  }
553
0
  static void set_has_packed(HasBits* has_bits) {
554
0
    (*has_bits)[0] |= 4u;
555
0
  }
556
0
  static void set_has_backgroundcolor(HasBits* has_bits) {
557
0
    (*has_bits)[0] |= 8u;
558
0
  }
559
0
  static void set_has_aspectratio(HasBits* has_bits) {
560
0
    (*has_bits)[0] |= 16u;
561
0
  }
562
0
  static bool MissingRequiredFields(const HasBits& has_bits) {
563
0
    return ((has_bits[0] & 0x0000001f) ^ 0x0000001f) != 0;
564
0
  }
565
};
566
567
LogicalScreenDescriptor::LogicalScreenDescriptor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
568
                         bool is_message_owned)
569
1.85k
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
570
1.85k
  SharedCtor(arena, is_message_owned);
571
  // @@protoc_insertion_point(arena_constructor:gifProtoFuzzer.LogicalScreenDescriptor)
572
1.85k
}
573
LogicalScreenDescriptor::LogicalScreenDescriptor(const LogicalScreenDescriptor& from)
574
0
  : ::PROTOBUF_NAMESPACE_ID::Message() {
575
0
  LogicalScreenDescriptor* const _this = this; (void)_this;
576
0
  new (&_impl_) Impl_{
577
0
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
578
0
    , /*decltype(_impl_._cached_size_)*/{}
579
0
    , decltype(_impl_.screenwidth_){}
580
0
    , decltype(_impl_.screenheight_){}
581
0
    , decltype(_impl_.packed_){}
582
0
    , decltype(_impl_.backgroundcolor_){}
583
0
    , decltype(_impl_.aspectratio_){}};
584
585
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
586
0
  ::memcpy(&_impl_.screenwidth_, &from._impl_.screenwidth_,
587
0
    static_cast<size_t>(reinterpret_cast<char*>(&_impl_.aspectratio_) -
588
0
    reinterpret_cast<char*>(&_impl_.screenwidth_)) + sizeof(_impl_.aspectratio_));
589
  // @@protoc_insertion_point(copy_constructor:gifProtoFuzzer.LogicalScreenDescriptor)
590
0
}
591
592
inline void LogicalScreenDescriptor::SharedCtor(
593
1.85k
    ::_pb::Arena* arena, bool is_message_owned) {
594
1.85k
  (void)arena;
595
1.85k
  (void)is_message_owned;
596
1.85k
  new (&_impl_) Impl_{
597
1.85k
      decltype(_impl_._has_bits_){}
598
1.85k
    , /*decltype(_impl_._cached_size_)*/{}
599
1.85k
    , decltype(_impl_.screenwidth_){0u}
600
1.85k
    , decltype(_impl_.screenheight_){0u}
601
1.85k
    , decltype(_impl_.packed_){0u}
602
1.85k
    , decltype(_impl_.backgroundcolor_){0u}
603
1.85k
    , decltype(_impl_.aspectratio_){0u}
604
1.85k
  };
605
1.85k
}
606
607
1.85k
LogicalScreenDescriptor::~LogicalScreenDescriptor() {
608
  // @@protoc_insertion_point(destructor:gifProtoFuzzer.LogicalScreenDescriptor)
609
1.85k
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
610
0
  (void)arena;
611
0
    return;
612
0
  }
613
1.85k
  SharedDtor();
614
1.85k
}
615
616
1.85k
inline void LogicalScreenDescriptor::SharedDtor() {
617
1.85k
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
618
1.85k
}
619
620
0
void LogicalScreenDescriptor::SetCachedSize(int size) const {
621
0
  _impl_._cached_size_.Set(size);
622
0
}
623
624
1.28k
void LogicalScreenDescriptor::Clear() {
625
// @@protoc_insertion_point(message_clear_start:gifProtoFuzzer.LogicalScreenDescriptor)
626
1.28k
  uint32_t cached_has_bits = 0;
627
  // Prevent compiler warnings about cached_has_bits being unused
628
1.28k
  (void) cached_has_bits;
629
630
1.28k
  cached_has_bits = _impl_._has_bits_[0];
631
1.28k
  if (cached_has_bits & 0x0000001fu) {
632
14
    ::memset(&_impl_.screenwidth_, 0, static_cast<size_t>(
633
14
        reinterpret_cast<char*>(&_impl_.aspectratio_) -
634
14
        reinterpret_cast<char*>(&_impl_.screenwidth_)) + sizeof(_impl_.aspectratio_));
635
14
  }
636
1.28k
  _impl_._has_bits_.Clear();
637
1.28k
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
638
1.28k
}
639
640
0
const char* LogicalScreenDescriptor::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
641
0
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
642
0
  _Internal::HasBits has_bits{};
643
0
  while (!ctx->Done(&ptr)) {
644
0
    uint32_t tag;
645
0
    ptr = ::_pbi::ReadTag(ptr, &tag);
646
0
    switch (tag >> 3) {
647
      // required uint32 ScreenWidth = 1;
648
0
      case 1:
649
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
650
0
          _Internal::set_has_screenwidth(&has_bits);
651
0
          _impl_.screenwidth_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
652
0
          CHK_(ptr);
653
0
        } else
654
0
          goto handle_unusual;
655
0
        continue;
656
      // required uint32 ScreenHeight = 2;
657
0
      case 2:
658
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
659
0
          _Internal::set_has_screenheight(&has_bits);
660
0
          _impl_.screenheight_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
661
0
          CHK_(ptr);
662
0
        } else
663
0
          goto handle_unusual;
664
0
        continue;
665
      // required uint32 Packed = 3;
666
0
      case 3:
667
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
668
0
          _Internal::set_has_packed(&has_bits);
669
0
          _impl_.packed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
670
0
          CHK_(ptr);
671
0
        } else
672
0
          goto handle_unusual;
673
0
        continue;
674
      // required uint32 BackgroundColor = 4;
675
0
      case 4:
676
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
677
0
          _Internal::set_has_backgroundcolor(&has_bits);
678
0
          _impl_.backgroundcolor_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
679
0
          CHK_(ptr);
680
0
        } else
681
0
          goto handle_unusual;
682
0
        continue;
683
      // required uint32 AspectRatio = 5;
684
0
      case 5:
685
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
686
0
          _Internal::set_has_aspectratio(&has_bits);
687
0
          _impl_.aspectratio_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
688
0
          CHK_(ptr);
689
0
        } else
690
0
          goto handle_unusual;
691
0
        continue;
692
0
      default:
693
0
        goto handle_unusual;
694
0
    }  // switch
695
0
  handle_unusual:
696
0
    if ((tag == 0) || ((tag & 7) == 4)) {
697
0
      CHK_(ptr);
698
0
      ctx->SetLastTag(tag);
699
0
      goto message_done;
700
0
    }
701
0
    ptr = UnknownFieldParse(
702
0
        tag,
703
0
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
704
0
        ptr, ctx);
705
0
    CHK_(ptr != nullptr);
706
0
  }  // while
707
0
message_done:
708
0
  _impl_._has_bits_.Or(has_bits);
709
0
  return ptr;
710
0
failure:
711
0
  ptr = nullptr;
712
0
  goto message_done;
713
0
#undef CHK_
714
0
}
715
716
uint8_t* LogicalScreenDescriptor::_InternalSerialize(
717
0
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
718
  // @@protoc_insertion_point(serialize_to_array_start:gifProtoFuzzer.LogicalScreenDescriptor)
719
0
  uint32_t cached_has_bits = 0;
720
0
  (void) cached_has_bits;
721
722
0
  cached_has_bits = _impl_._has_bits_[0];
723
  // required uint32 ScreenWidth = 1;
724
0
  if (cached_has_bits & 0x00000001u) {
725
0
    target = stream->EnsureSpace(target);
726
0
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_screenwidth(), target);
727
0
  }
728
729
  // required uint32 ScreenHeight = 2;
730
0
  if (cached_has_bits & 0x00000002u) {
731
0
    target = stream->EnsureSpace(target);
732
0
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_screenheight(), target);
733
0
  }
734
735
  // required uint32 Packed = 3;
736
0
  if (cached_has_bits & 0x00000004u) {
737
0
    target = stream->EnsureSpace(target);
738
0
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_packed(), target);
739
0
  }
740
741
  // required uint32 BackgroundColor = 4;
742
0
  if (cached_has_bits & 0x00000008u) {
743
0
    target = stream->EnsureSpace(target);
744
0
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_backgroundcolor(), target);
745
0
  }
746
747
  // required uint32 AspectRatio = 5;
748
0
  if (cached_has_bits & 0x00000010u) {
749
0
    target = stream->EnsureSpace(target);
750
0
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(5, this->_internal_aspectratio(), target);
751
0
  }
752
753
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
754
0
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
755
0
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
756
0
  }
757
  // @@protoc_insertion_point(serialize_to_array_end:gifProtoFuzzer.LogicalScreenDescriptor)
758
0
  return target;
759
0
}
760
761
0
size_t LogicalScreenDescriptor::RequiredFieldsByteSizeFallback() const {
762
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:gifProtoFuzzer.LogicalScreenDescriptor)
763
0
  size_t total_size = 0;
764
765
0
  if (_internal_has_screenwidth()) {
766
    // required uint32 ScreenWidth = 1;
767
0
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_screenwidth());
768
0
  }
769
770
0
  if (_internal_has_screenheight()) {
771
    // required uint32 ScreenHeight = 2;
772
0
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_screenheight());
773
0
  }
774
775
0
  if (_internal_has_packed()) {
776
    // required uint32 Packed = 3;
777
0
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_packed());
778
0
  }
779
780
0
  if (_internal_has_backgroundcolor()) {
781
    // required uint32 BackgroundColor = 4;
782
0
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_backgroundcolor());
783
0
  }
784
785
0
  if (_internal_has_aspectratio()) {
786
    // required uint32 AspectRatio = 5;
787
0
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_aspectratio());
788
0
  }
789
790
0
  return total_size;
791
0
}
792
0
size_t LogicalScreenDescriptor::ByteSizeLong() const {
793
// @@protoc_insertion_point(message_byte_size_start:gifProtoFuzzer.LogicalScreenDescriptor)
794
0
  size_t total_size = 0;
795
796
0
  if (((_impl_._has_bits_[0] & 0x0000001f) ^ 0x0000001f) == 0) {  // All required fields are present.
797
    // required uint32 ScreenWidth = 1;
798
0
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_screenwidth());
799
800
    // required uint32 ScreenHeight = 2;
801
0
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_screenheight());
802
803
    // required uint32 Packed = 3;
804
0
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_packed());
805
806
    // required uint32 BackgroundColor = 4;
807
0
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_backgroundcolor());
808
809
    // required uint32 AspectRatio = 5;
810
0
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_aspectratio());
811
812
0
  } else {
813
0
    total_size += RequiredFieldsByteSizeFallback();
814
0
  }
815
0
  uint32_t cached_has_bits = 0;
816
  // Prevent compiler warnings about cached_has_bits being unused
817
0
  (void) cached_has_bits;
818
819
0
  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
820
0
}
821
822
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LogicalScreenDescriptor::_class_data_ = {
823
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
824
    LogicalScreenDescriptor::MergeImpl
825
};
826
1.89k
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LogicalScreenDescriptor::GetClassData() const { return &_class_data_; }
827
828
829
630
void LogicalScreenDescriptor::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
830
630
  auto* const _this = static_cast<LogicalScreenDescriptor*>(&to_msg);
831
630
  auto& from = static_cast<const LogicalScreenDescriptor&>(from_msg);
832
  // @@protoc_insertion_point(class_specific_merge_from_start:gifProtoFuzzer.LogicalScreenDescriptor)
833
630
  GOOGLE_DCHECK_NE(&from, _this);
834
630
  uint32_t cached_has_bits = 0;
835
630
  (void) cached_has_bits;
836
837
630
  cached_has_bits = from._impl_._has_bits_[0];
838
630
  if (cached_has_bits & 0x0000001fu) {
839
0
    if (cached_has_bits & 0x00000001u) {
840
0
      _this->_impl_.screenwidth_ = from._impl_.screenwidth_;
841
0
    }
842
0
    if (cached_has_bits & 0x00000002u) {
843
0
      _this->_impl_.screenheight_ = from._impl_.screenheight_;
844
0
    }
845
0
    if (cached_has_bits & 0x00000004u) {
846
0
      _this->_impl_.packed_ = from._impl_.packed_;
847
0
    }
848
0
    if (cached_has_bits & 0x00000008u) {
849
0
      _this->_impl_.backgroundcolor_ = from._impl_.backgroundcolor_;
850
0
    }
851
0
    if (cached_has_bits & 0x00000010u) {
852
0
      _this->_impl_.aspectratio_ = from._impl_.aspectratio_;
853
0
    }
854
0
    _this->_impl_._has_bits_[0] |= cached_has_bits;
855
0
  }
856
630
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
857
630
}
858
859
0
void LogicalScreenDescriptor::CopyFrom(const LogicalScreenDescriptor& from) {
860
// @@protoc_insertion_point(class_specific_copy_from_start:gifProtoFuzzer.LogicalScreenDescriptor)
861
0
  if (&from == this) return;
862
0
  Clear();
863
0
  MergeFrom(from);
864
0
}
865
866
0
bool LogicalScreenDescriptor::IsInitialized() const {
867
0
  if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false;
868
0
  return true;
869
0
}
870
871
0
void LogicalScreenDescriptor::InternalSwap(LogicalScreenDescriptor* other) {
872
0
  using std::swap;
873
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
874
0
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
875
0
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
876
0
      PROTOBUF_FIELD_OFFSET(LogicalScreenDescriptor, _impl_.aspectratio_)
877
0
      + sizeof(LogicalScreenDescriptor::_impl_.aspectratio_)
878
0
      - PROTOBUF_FIELD_OFFSET(LogicalScreenDescriptor, _impl_.screenwidth_)>(
879
0
          reinterpret_cast<char*>(&_impl_.screenwidth_),
880
0
          reinterpret_cast<char*>(&other->_impl_.screenwidth_));
881
0
}
882
883
17.5k
::PROTOBUF_NAMESPACE_ID::Metadata LogicalScreenDescriptor::GetMetadata() const {
884
17.5k
  return ::_pbi::AssignDescriptors(
885
17.5k
      &descriptor_table_gif_5ffuzz_5fproto_2eproto_getter, &descriptor_table_gif_5ffuzz_5fproto_2eproto_once,
886
17.5k
      file_level_metadata_gif_5ffuzz_5fproto_2eproto[0]);
887
17.5k
}
888
889
// ===================================================================
890
891
class GlobalColorTable::_Internal {
892
 public:
893
  using HasBits = decltype(std::declval<GlobalColorTable>()._impl_._has_bits_);
894
0
  static void set_has_colors(HasBits* has_bits) {
895
0
    (*has_bits)[0] |= 1u;
896
0
  }
897
0
  static bool MissingRequiredFields(const HasBits& has_bits) {
898
0
    return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0;
899
0
  }
900
};
901
902
GlobalColorTable::GlobalColorTable(::PROTOBUF_NAMESPACE_ID::Arena* arena,
903
                         bool is_message_owned)
904
1.84k
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
905
1.84k
  SharedCtor(arena, is_message_owned);
906
  // @@protoc_insertion_point(arena_constructor:gifProtoFuzzer.GlobalColorTable)
907
1.84k
}
908
GlobalColorTable::GlobalColorTable(const GlobalColorTable& from)
909
0
  : ::PROTOBUF_NAMESPACE_ID::Message() {
910
0
  GlobalColorTable* const _this = this; (void)_this;
911
0
  new (&_impl_) Impl_{
912
0
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
913
0
    , /*decltype(_impl_._cached_size_)*/{}
914
0
    , decltype(_impl_.colors_){}};
915
916
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
917
0
  _impl_.colors_.InitDefault();
918
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
919
    _impl_.colors_.Set("", GetArenaForAllocation());
920
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
921
0
  if (from._internal_has_colors()) {
922
0
    _this->_impl_.colors_.Set(from._internal_colors(), 
923
0
      _this->GetArenaForAllocation());
924
0
  }
925
  // @@protoc_insertion_point(copy_constructor:gifProtoFuzzer.GlobalColorTable)
926
0
}
927
928
inline void GlobalColorTable::SharedCtor(
929
1.84k
    ::_pb::Arena* arena, bool is_message_owned) {
930
1.84k
  (void)arena;
931
1.84k
  (void)is_message_owned;
932
1.84k
  new (&_impl_) Impl_{
933
1.84k
      decltype(_impl_._has_bits_){}
934
1.84k
    , /*decltype(_impl_._cached_size_)*/{}
935
1.84k
    , decltype(_impl_.colors_){}
936
1.84k
  };
937
1.84k
  _impl_.colors_.InitDefault();
938
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
939
    _impl_.colors_.Set("", GetArenaForAllocation());
940
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
941
1.84k
}
942
943
1.84k
GlobalColorTable::~GlobalColorTable() {
944
  // @@protoc_insertion_point(destructor:gifProtoFuzzer.GlobalColorTable)
945
1.84k
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
946
0
  (void)arena;
947
0
    return;
948
0
  }
949
1.84k
  SharedDtor();
950
1.84k
}
951
952
1.84k
inline void GlobalColorTable::SharedDtor() {
953
1.84k
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
954
1.84k
  _impl_.colors_.Destroy();
955
1.84k
}
956
957
0
void GlobalColorTable::SetCachedSize(int size) const {
958
0
  _impl_._cached_size_.Set(size);
959
0
}
960
961
1.27k
void GlobalColorTable::Clear() {
962
// @@protoc_insertion_point(message_clear_start:gifProtoFuzzer.GlobalColorTable)
963
1.27k
  uint32_t cached_has_bits = 0;
964
  // Prevent compiler warnings about cached_has_bits being unused
965
1.27k
  (void) cached_has_bits;
966
967
1.27k
  cached_has_bits = _impl_._has_bits_[0];
968
1.27k
  if (cached_has_bits & 0x00000001u) {
969
11
    _impl_.colors_.ClearNonDefaultToEmpty();
970
11
  }
971
1.27k
  _impl_._has_bits_.Clear();
972
1.27k
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
973
1.27k
}
974
975
0
const char* GlobalColorTable::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
976
0
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
977
0
  _Internal::HasBits has_bits{};
978
0
  while (!ctx->Done(&ptr)) {
979
0
    uint32_t tag;
980
0
    ptr = ::_pbi::ReadTag(ptr, &tag);
981
0
    switch (tag >> 3) {
982
      // required bytes colors = 1;
983
0
      case 1:
984
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
985
0
          auto str = _internal_mutable_colors();
986
0
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
987
0
          CHK_(ptr);
988
0
        } else
989
0
          goto handle_unusual;
990
0
        continue;
991
0
      default:
992
0
        goto handle_unusual;
993
0
    }  // switch
994
0
  handle_unusual:
995
0
    if ((tag == 0) || ((tag & 7) == 4)) {
996
0
      CHK_(ptr);
997
0
      ctx->SetLastTag(tag);
998
0
      goto message_done;
999
0
    }
1000
0
    ptr = UnknownFieldParse(
1001
0
        tag,
1002
0
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
1003
0
        ptr, ctx);
1004
0
    CHK_(ptr != nullptr);
1005
0
  }  // while
1006
0
message_done:
1007
0
  _impl_._has_bits_.Or(has_bits);
1008
0
  return ptr;
1009
0
failure:
1010
0
  ptr = nullptr;
1011
0
  goto message_done;
1012
0
#undef CHK_
1013
0
}
1014
1015
uint8_t* GlobalColorTable::_InternalSerialize(
1016
0
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1017
  // @@protoc_insertion_point(serialize_to_array_start:gifProtoFuzzer.GlobalColorTable)
1018
0
  uint32_t cached_has_bits = 0;
1019
0
  (void) cached_has_bits;
1020
1021
0
  cached_has_bits = _impl_._has_bits_[0];
1022
  // required bytes colors = 1;
1023
0
  if (cached_has_bits & 0x00000001u) {
1024
0
    target = stream->WriteBytesMaybeAliased(
1025
0
        1, this->_internal_colors(), target);
1026
0
  }
1027
1028
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1029
0
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1030
0
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
1031
0
  }
1032
  // @@protoc_insertion_point(serialize_to_array_end:gifProtoFuzzer.GlobalColorTable)
1033
0
  return target;
1034
0
}
1035
1036
0
size_t GlobalColorTable::ByteSizeLong() const {
1037
// @@protoc_insertion_point(message_byte_size_start:gifProtoFuzzer.GlobalColorTable)
1038
0
  size_t total_size = 0;
1039
1040
  // required bytes colors = 1;
1041
0
  if (_internal_has_colors()) {
1042
0
    total_size += 1 +
1043
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
1044
0
        this->_internal_colors());
1045
0
  }
1046
0
  uint32_t cached_has_bits = 0;
1047
  // Prevent compiler warnings about cached_has_bits being unused
1048
0
  (void) cached_has_bits;
1049
1050
0
  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
1051
0
}
1052
1053
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GlobalColorTable::_class_data_ = {
1054
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
1055
    GlobalColorTable::MergeImpl
1056
};
1057
1.88k
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GlobalColorTable::GetClassData() const { return &_class_data_; }
1058
1059
1060
628
void GlobalColorTable::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
1061
628
  auto* const _this = static_cast<GlobalColorTable*>(&to_msg);
1062
628
  auto& from = static_cast<const GlobalColorTable&>(from_msg);
1063
  // @@protoc_insertion_point(class_specific_merge_from_start:gifProtoFuzzer.GlobalColorTable)
1064
628
  GOOGLE_DCHECK_NE(&from, _this);
1065
628
  uint32_t cached_has_bits = 0;
1066
628
  (void) cached_has_bits;
1067
1068
628
  if (from._internal_has_colors()) {
1069
0
    _this->_internal_set_colors(from._internal_colors());
1070
0
  }
1071
628
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1072
628
}
1073
1074
0
void GlobalColorTable::CopyFrom(const GlobalColorTable& from) {
1075
// @@protoc_insertion_point(class_specific_copy_from_start:gifProtoFuzzer.GlobalColorTable)
1076
0
  if (&from == this) return;
1077
0
  Clear();
1078
0
  MergeFrom(from);
1079
0
}
1080
1081
0
bool GlobalColorTable::IsInitialized() const {
1082
0
  if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false;
1083
0
  return true;
1084
0
}
1085
1086
0
void GlobalColorTable::InternalSwap(GlobalColorTable* other) {
1087
0
  using std::swap;
1088
0
  auto* lhs_arena = GetArenaForAllocation();
1089
0
  auto* rhs_arena = other->GetArenaForAllocation();
1090
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1091
0
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1092
0
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1093
0
      &_impl_.colors_, lhs_arena,
1094
0
      &other->_impl_.colors_, rhs_arena
1095
0
  );
1096
0
}
1097
1098
8.69k
::PROTOBUF_NAMESPACE_ID::Metadata GlobalColorTable::GetMetadata() const {
1099
8.69k
  return ::_pbi::AssignDescriptors(
1100
8.69k
      &descriptor_table_gif_5ffuzz_5fproto_2eproto_getter, &descriptor_table_gif_5ffuzz_5fproto_2eproto_once,
1101
8.69k
      file_level_metadata_gif_5ffuzz_5fproto_2eproto[1]);
1102
8.69k
}
1103
1104
// ===================================================================
1105
1106
class ImageDescriptor::_Internal {
1107
 public:
1108
  using HasBits = decltype(std::declval<ImageDescriptor>()._impl_._has_bits_);
1109
0
  static void set_has_seperator(HasBits* has_bits) {
1110
0
    (*has_bits)[0] |= 1u;
1111
0
  }
1112
0
  static void set_has_left(HasBits* has_bits) {
1113
0
    (*has_bits)[0] |= 2u;
1114
0
  }
1115
0
  static void set_has_top(HasBits* has_bits) {
1116
0
    (*has_bits)[0] |= 4u;
1117
0
  }
1118
0
  static void set_has_width(HasBits* has_bits) {
1119
0
    (*has_bits)[0] |= 8u;
1120
0
  }
1121
0
  static void set_has_height(HasBits* has_bits) {
1122
0
    (*has_bits)[0] |= 16u;
1123
0
  }
1124
0
  static void set_has_packed(HasBits* has_bits) {
1125
0
    (*has_bits)[0] |= 32u;
1126
0
  }
1127
0
  static bool MissingRequiredFields(const HasBits& has_bits) {
1128
0
    return ((has_bits[0] & 0x0000003f) ^ 0x0000003f) != 0;
1129
0
  }
1130
};
1131
1132
ImageDescriptor::ImageDescriptor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1133
                         bool is_message_owned)
1134
2.06k
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
1135
2.06k
  SharedCtor(arena, is_message_owned);
1136
  // @@protoc_insertion_point(arena_constructor:gifProtoFuzzer.ImageDescriptor)
1137
2.06k
}
1138
ImageDescriptor::ImageDescriptor(const ImageDescriptor& from)
1139
0
  : ::PROTOBUF_NAMESPACE_ID::Message() {
1140
0
  ImageDescriptor* const _this = this; (void)_this;
1141
0
  new (&_impl_) Impl_{
1142
0
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
1143
0
    , /*decltype(_impl_._cached_size_)*/{}
1144
0
    , decltype(_impl_.seperator_){}
1145
0
    , decltype(_impl_.left_){}
1146
0
    , decltype(_impl_.top_){}
1147
0
    , decltype(_impl_.width_){}
1148
0
    , decltype(_impl_.height_){}
1149
0
    , decltype(_impl_.packed_){}};
1150
1151
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1152
0
  ::memcpy(&_impl_.seperator_, &from._impl_.seperator_,
1153
0
    static_cast<size_t>(reinterpret_cast<char*>(&_impl_.packed_) -
1154
0
    reinterpret_cast<char*>(&_impl_.seperator_)) + sizeof(_impl_.packed_));
1155
  // @@protoc_insertion_point(copy_constructor:gifProtoFuzzer.ImageDescriptor)
1156
0
}
1157
1158
inline void ImageDescriptor::SharedCtor(
1159
2.06k
    ::_pb::Arena* arena, bool is_message_owned) {
1160
2.06k
  (void)arena;
1161
2.06k
  (void)is_message_owned;
1162
2.06k
  new (&_impl_) Impl_{
1163
2.06k
      decltype(_impl_._has_bits_){}
1164
2.06k
    , /*decltype(_impl_._cached_size_)*/{}
1165
2.06k
    , decltype(_impl_.seperator_){0u}
1166
2.06k
    , decltype(_impl_.left_){0u}
1167
2.06k
    , decltype(_impl_.top_){0u}
1168
2.06k
    , decltype(_impl_.width_){0u}
1169
2.06k
    , decltype(_impl_.height_){0u}
1170
2.06k
    , decltype(_impl_.packed_){0u}
1171
2.06k
  };
1172
2.06k
}
1173
1174
2.06k
ImageDescriptor::~ImageDescriptor() {
1175
  // @@protoc_insertion_point(destructor:gifProtoFuzzer.ImageDescriptor)
1176
2.06k
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
1177
0
  (void)arena;
1178
0
    return;
1179
0
  }
1180
2.06k
  SharedDtor();
1181
2.06k
}
1182
1183
2.06k
inline void ImageDescriptor::SharedDtor() {
1184
2.06k
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1185
2.06k
}
1186
1187
0
void ImageDescriptor::SetCachedSize(int size) const {
1188
0
  _impl_._cached_size_.Set(size);
1189
0
}
1190
1191
1.41k
void ImageDescriptor::Clear() {
1192
// @@protoc_insertion_point(message_clear_start:gifProtoFuzzer.ImageDescriptor)
1193
1.41k
  uint32_t cached_has_bits = 0;
1194
  // Prevent compiler warnings about cached_has_bits being unused
1195
1.41k
  (void) cached_has_bits;
1196
1197
1.41k
  cached_has_bits = _impl_._has_bits_[0];
1198
1.41k
  if (cached_has_bits & 0x0000003fu) {
1199
0
    ::memset(&_impl_.seperator_, 0, static_cast<size_t>(
1200
0
        reinterpret_cast<char*>(&_impl_.packed_) -
1201
0
        reinterpret_cast<char*>(&_impl_.seperator_)) + sizeof(_impl_.packed_));
1202
0
  }
1203
1.41k
  _impl_._has_bits_.Clear();
1204
1.41k
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1205
1.41k
}
1206
1207
0
const char* ImageDescriptor::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1208
0
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1209
0
  _Internal::HasBits has_bits{};
1210
0
  while (!ctx->Done(&ptr)) {
1211
0
    uint32_t tag;
1212
0
    ptr = ::_pbi::ReadTag(ptr, &tag);
1213
0
    switch (tag >> 3) {
1214
      // required uint32 Seperator = 1;
1215
0
      case 1:
1216
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
1217
0
          _Internal::set_has_seperator(&has_bits);
1218
0
          _impl_.seperator_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1219
0
          CHK_(ptr);
1220
0
        } else
1221
0
          goto handle_unusual;
1222
0
        continue;
1223
      // required uint32 Left = 2;
1224
0
      case 2:
1225
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
1226
0
          _Internal::set_has_left(&has_bits);
1227
0
          _impl_.left_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1228
0
          CHK_(ptr);
1229
0
        } else
1230
0
          goto handle_unusual;
1231
0
        continue;
1232
      // required uint32 Top = 3;
1233
0
      case 3:
1234
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
1235
0
          _Internal::set_has_top(&has_bits);
1236
0
          _impl_.top_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1237
0
          CHK_(ptr);
1238
0
        } else
1239
0
          goto handle_unusual;
1240
0
        continue;
1241
      // required uint32 Width = 4;
1242
0
      case 4:
1243
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
1244
0
          _Internal::set_has_width(&has_bits);
1245
0
          _impl_.width_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1246
0
          CHK_(ptr);
1247
0
        } else
1248
0
          goto handle_unusual;
1249
0
        continue;
1250
      // required uint32 Height = 5;
1251
0
      case 5:
1252
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
1253
0
          _Internal::set_has_height(&has_bits);
1254
0
          _impl_.height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1255
0
          CHK_(ptr);
1256
0
        } else
1257
0
          goto handle_unusual;
1258
0
        continue;
1259
      // required uint32 Packed = 6;
1260
0
      case 6:
1261
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
1262
0
          _Internal::set_has_packed(&has_bits);
1263
0
          _impl_.packed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1264
0
          CHK_(ptr);
1265
0
        } else
1266
0
          goto handle_unusual;
1267
0
        continue;
1268
0
      default:
1269
0
        goto handle_unusual;
1270
0
    }  // switch
1271
0
  handle_unusual:
1272
0
    if ((tag == 0) || ((tag & 7) == 4)) {
1273
0
      CHK_(ptr);
1274
0
      ctx->SetLastTag(tag);
1275
0
      goto message_done;
1276
0
    }
1277
0
    ptr = UnknownFieldParse(
1278
0
        tag,
1279
0
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
1280
0
        ptr, ctx);
1281
0
    CHK_(ptr != nullptr);
1282
0
  }  // while
1283
0
message_done:
1284
0
  _impl_._has_bits_.Or(has_bits);
1285
0
  return ptr;
1286
0
failure:
1287
0
  ptr = nullptr;
1288
0
  goto message_done;
1289
0
#undef CHK_
1290
0
}
1291
1292
uint8_t* ImageDescriptor::_InternalSerialize(
1293
0
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1294
  // @@protoc_insertion_point(serialize_to_array_start:gifProtoFuzzer.ImageDescriptor)
1295
0
  uint32_t cached_has_bits = 0;
1296
0
  (void) cached_has_bits;
1297
1298
0
  cached_has_bits = _impl_._has_bits_[0];
1299
  // required uint32 Seperator = 1;
1300
0
  if (cached_has_bits & 0x00000001u) {
1301
0
    target = stream->EnsureSpace(target);
1302
0
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_seperator(), target);
1303
0
  }
1304
1305
  // required uint32 Left = 2;
1306
0
  if (cached_has_bits & 0x00000002u) {
1307
0
    target = stream->EnsureSpace(target);
1308
0
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_left(), target);
1309
0
  }
1310
1311
  // required uint32 Top = 3;
1312
0
  if (cached_has_bits & 0x00000004u) {
1313
0
    target = stream->EnsureSpace(target);
1314
0
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_top(), target);
1315
0
  }
1316
1317
  // required uint32 Width = 4;
1318
0
  if (cached_has_bits & 0x00000008u) {
1319
0
    target = stream->EnsureSpace(target);
1320
0
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_width(), target);
1321
0
  }
1322
1323
  // required uint32 Height = 5;
1324
0
  if (cached_has_bits & 0x00000010u) {
1325
0
    target = stream->EnsureSpace(target);
1326
0
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(5, this->_internal_height(), target);
1327
0
  }
1328
1329
  // required uint32 Packed = 6;
1330
0
  if (cached_has_bits & 0x00000020u) {
1331
0
    target = stream->EnsureSpace(target);
1332
0
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(6, this->_internal_packed(), target);
1333
0
  }
1334
1335
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1336
0
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1337
0
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
1338
0
  }
1339
  // @@protoc_insertion_point(serialize_to_array_end:gifProtoFuzzer.ImageDescriptor)
1340
0
  return target;
1341
0
}
1342
1343
0
size_t ImageDescriptor::RequiredFieldsByteSizeFallback() const {
1344
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:gifProtoFuzzer.ImageDescriptor)
1345
0
  size_t total_size = 0;
1346
1347
0
  if (_internal_has_seperator()) {
1348
    // required uint32 Seperator = 1;
1349
0
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_seperator());
1350
0
  }
1351
1352
0
  if (_internal_has_left()) {
1353
    // required uint32 Left = 2;
1354
0
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_left());
1355
0
  }
1356
1357
0
  if (_internal_has_top()) {
1358
    // required uint32 Top = 3;
1359
0
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_top());
1360
0
  }
1361
1362
0
  if (_internal_has_width()) {
1363
    // required uint32 Width = 4;
1364
0
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_width());
1365
0
  }
1366
1367
0
  if (_internal_has_height()) {
1368
    // required uint32 Height = 5;
1369
0
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_height());
1370
0
  }
1371
1372
0
  if (_internal_has_packed()) {
1373
    // required uint32 Packed = 6;
1374
0
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_packed());
1375
0
  }
1376
1377
0
  return total_size;
1378
0
}
1379
0
size_t ImageDescriptor::ByteSizeLong() const {
1380
// @@protoc_insertion_point(message_byte_size_start:gifProtoFuzzer.ImageDescriptor)
1381
0
  size_t total_size = 0;
1382
1383
0
  if (((_impl_._has_bits_[0] & 0x0000003f) ^ 0x0000003f) == 0) {  // All required fields are present.
1384
    // required uint32 Seperator = 1;
1385
0
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_seperator());
1386
1387
    // required uint32 Left = 2;
1388
0
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_left());
1389
1390
    // required uint32 Top = 3;
1391
0
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_top());
1392
1393
    // required uint32 Width = 4;
1394
0
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_width());
1395
1396
    // required uint32 Height = 5;
1397
0
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_height());
1398
1399
    // required uint32 Packed = 6;
1400
0
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_packed());
1401
1402
0
  } else {
1403
0
    total_size += RequiredFieldsByteSizeFallback();
1404
0
  }
1405
0
  uint32_t cached_has_bits = 0;
1406
  // Prevent compiler warnings about cached_has_bits being unused
1407
0
  (void) cached_has_bits;
1408
1409
0
  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
1410
0
}
1411
1412
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ImageDescriptor::_class_data_ = {
1413
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
1414
    ImageDescriptor::MergeImpl
1415
};
1416
2.12k
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ImageDescriptor::GetClassData() const { return &_class_data_; }
1417
1418
1419
709
void ImageDescriptor::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
1420
709
  auto* const _this = static_cast<ImageDescriptor*>(&to_msg);
1421
709
  auto& from = static_cast<const ImageDescriptor&>(from_msg);
1422
  // @@protoc_insertion_point(class_specific_merge_from_start:gifProtoFuzzer.ImageDescriptor)
1423
709
  GOOGLE_DCHECK_NE(&from, _this);
1424
709
  uint32_t cached_has_bits = 0;
1425
709
  (void) cached_has_bits;
1426
1427
709
  cached_has_bits = from._impl_._has_bits_[0];
1428
709
  if (cached_has_bits & 0x0000003fu) {
1429
0
    if (cached_has_bits & 0x00000001u) {
1430
0
      _this->_impl_.seperator_ = from._impl_.seperator_;
1431
0
    }
1432
0
    if (cached_has_bits & 0x00000002u) {
1433
0
      _this->_impl_.left_ = from._impl_.left_;
1434
0
    }
1435
0
    if (cached_has_bits & 0x00000004u) {
1436
0
      _this->_impl_.top_ = from._impl_.top_;
1437
0
    }
1438
0
    if (cached_has_bits & 0x00000008u) {
1439
0
      _this->_impl_.width_ = from._impl_.width_;
1440
0
    }
1441
0
    if (cached_has_bits & 0x00000010u) {
1442
0
      _this->_impl_.height_ = from._impl_.height_;
1443
0
    }
1444
0
    if (cached_has_bits & 0x00000020u) {
1445
0
      _this->_impl_.packed_ = from._impl_.packed_;
1446
0
    }
1447
0
    _this->_impl_._has_bits_[0] |= cached_has_bits;
1448
0
  }
1449
709
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1450
709
}
1451
1452
0
void ImageDescriptor::CopyFrom(const ImageDescriptor& from) {
1453
// @@protoc_insertion_point(class_specific_copy_from_start:gifProtoFuzzer.ImageDescriptor)
1454
0
  if (&from == this) return;
1455
0
  Clear();
1456
0
  MergeFrom(from);
1457
0
}
1458
1459
0
bool ImageDescriptor::IsInitialized() const {
1460
0
  if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false;
1461
0
  return true;
1462
0
}
1463
1464
0
void ImageDescriptor::InternalSwap(ImageDescriptor* other) {
1465
0
  using std::swap;
1466
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1467
0
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1468
0
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
1469
0
      PROTOBUF_FIELD_OFFSET(ImageDescriptor, _impl_.packed_)
1470
0
      + sizeof(ImageDescriptor::_impl_.packed_)
1471
0
      - PROTOBUF_FIELD_OFFSET(ImageDescriptor, _impl_.seperator_)>(
1472
0
          reinterpret_cast<char*>(&_impl_.seperator_),
1473
0
          reinterpret_cast<char*>(&other->_impl_.seperator_));
1474
0
}
1475
1476
19.8k
::PROTOBUF_NAMESPACE_ID::Metadata ImageDescriptor::GetMetadata() const {
1477
19.8k
  return ::_pbi::AssignDescriptors(
1478
19.8k
      &descriptor_table_gif_5ffuzz_5fproto_2eproto_getter, &descriptor_table_gif_5ffuzz_5fproto_2eproto_once,
1479
19.8k
      file_level_metadata_gif_5ffuzz_5fproto_2eproto[2]);
1480
19.8k
}
1481
1482
// ===================================================================
1483
1484
class GraphicControlExtension::_Internal {
1485
 public:
1486
  using HasBits = decltype(std::declval<GraphicControlExtension>()._impl_._has_bits_);
1487
0
  static void set_has_packed(HasBits* has_bits) {
1488
0
    (*has_bits)[0] |= 1u;
1489
0
  }
1490
0
  static void set_has_delaytime(HasBits* has_bits) {
1491
0
    (*has_bits)[0] |= 2u;
1492
0
  }
1493
0
  static void set_has_transparentcolorindex(HasBits* has_bits) {
1494
0
    (*has_bits)[0] |= 4u;
1495
0
  }
1496
0
  static bool MissingRequiredFields(const HasBits& has_bits) {
1497
0
    return ((has_bits[0] & 0x00000007) ^ 0x00000007) != 0;
1498
0
  }
1499
};
1500
1501
GraphicControlExtension::GraphicControlExtension(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1502
                         bool is_message_owned)
1503
813
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
1504
813
  SharedCtor(arena, is_message_owned);
1505
  // @@protoc_insertion_point(arena_constructor:gifProtoFuzzer.GraphicControlExtension)
1506
813
}
1507
GraphicControlExtension::GraphicControlExtension(const GraphicControlExtension& from)
1508
0
  : ::PROTOBUF_NAMESPACE_ID::Message() {
1509
0
  GraphicControlExtension* const _this = this; (void)_this;
1510
0
  new (&_impl_) Impl_{
1511
0
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
1512
0
    , /*decltype(_impl_._cached_size_)*/{}
1513
0
    , decltype(_impl_.packed_){}
1514
0
    , decltype(_impl_.delaytime_){}
1515
0
    , decltype(_impl_.transparentcolorindex_){}};
1516
1517
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1518
0
  ::memcpy(&_impl_.packed_, &from._impl_.packed_,
1519
0
    static_cast<size_t>(reinterpret_cast<char*>(&_impl_.transparentcolorindex_) -
1520
0
    reinterpret_cast<char*>(&_impl_.packed_)) + sizeof(_impl_.transparentcolorindex_));
1521
  // @@protoc_insertion_point(copy_constructor:gifProtoFuzzer.GraphicControlExtension)
1522
0
}
1523
1524
inline void GraphicControlExtension::SharedCtor(
1525
813
    ::_pb::Arena* arena, bool is_message_owned) {
1526
813
  (void)arena;
1527
813
  (void)is_message_owned;
1528
813
  new (&_impl_) Impl_{
1529
813
      decltype(_impl_._has_bits_){}
1530
813
    , /*decltype(_impl_._cached_size_)*/{}
1531
813
    , decltype(_impl_.packed_){0u}
1532
813
    , decltype(_impl_.delaytime_){0u}
1533
813
    , decltype(_impl_.transparentcolorindex_){0u}
1534
813
  };
1535
813
}
1536
1537
813
GraphicControlExtension::~GraphicControlExtension() {
1538
  // @@protoc_insertion_point(destructor:gifProtoFuzzer.GraphicControlExtension)
1539
813
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
1540
0
  (void)arena;
1541
0
    return;
1542
0
  }
1543
813
  SharedDtor();
1544
813
}
1545
1546
813
inline void GraphicControlExtension::SharedDtor() {
1547
813
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1548
813
}
1549
1550
0
void GraphicControlExtension::SetCachedSize(int size) const {
1551
0
  _impl_._cached_size_.Set(size);
1552
0
}
1553
1554
0
void GraphicControlExtension::Clear() {
1555
// @@protoc_insertion_point(message_clear_start:gifProtoFuzzer.GraphicControlExtension)
1556
0
  uint32_t cached_has_bits = 0;
1557
  // Prevent compiler warnings about cached_has_bits being unused
1558
0
  (void) cached_has_bits;
1559
1560
0
  cached_has_bits = _impl_._has_bits_[0];
1561
0
  if (cached_has_bits & 0x00000007u) {
1562
0
    ::memset(&_impl_.packed_, 0, static_cast<size_t>(
1563
0
        reinterpret_cast<char*>(&_impl_.transparentcolorindex_) -
1564
0
        reinterpret_cast<char*>(&_impl_.packed_)) + sizeof(_impl_.transparentcolorindex_));
1565
0
  }
1566
0
  _impl_._has_bits_.Clear();
1567
0
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1568
0
}
1569
1570
0
const char* GraphicControlExtension::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1571
0
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1572
0
  _Internal::HasBits has_bits{};
1573
0
  while (!ctx->Done(&ptr)) {
1574
0
    uint32_t tag;
1575
0
    ptr = ::_pbi::ReadTag(ptr, &tag);
1576
0
    switch (tag >> 3) {
1577
      // required uint32 Packed = 1;
1578
0
      case 1:
1579
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
1580
0
          _Internal::set_has_packed(&has_bits);
1581
0
          _impl_.packed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1582
0
          CHK_(ptr);
1583
0
        } else
1584
0
          goto handle_unusual;
1585
0
        continue;
1586
      // required uint32 DelayTime = 2;
1587
0
      case 2:
1588
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
1589
0
          _Internal::set_has_delaytime(&has_bits);
1590
0
          _impl_.delaytime_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1591
0
          CHK_(ptr);
1592
0
        } else
1593
0
          goto handle_unusual;
1594
0
        continue;
1595
      // required uint32 transparentColorIndex = 3;
1596
0
      case 3:
1597
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
1598
0
          _Internal::set_has_transparentcolorindex(&has_bits);
1599
0
          _impl_.transparentcolorindex_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1600
0
          CHK_(ptr);
1601
0
        } else
1602
0
          goto handle_unusual;
1603
0
        continue;
1604
0
      default:
1605
0
        goto handle_unusual;
1606
0
    }  // switch
1607
0
  handle_unusual:
1608
0
    if ((tag == 0) || ((tag & 7) == 4)) {
1609
0
      CHK_(ptr);
1610
0
      ctx->SetLastTag(tag);
1611
0
      goto message_done;
1612
0
    }
1613
0
    ptr = UnknownFieldParse(
1614
0
        tag,
1615
0
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
1616
0
        ptr, ctx);
1617
0
    CHK_(ptr != nullptr);
1618
0
  }  // while
1619
0
message_done:
1620
0
  _impl_._has_bits_.Or(has_bits);
1621
0
  return ptr;
1622
0
failure:
1623
0
  ptr = nullptr;
1624
0
  goto message_done;
1625
0
#undef CHK_
1626
0
}
1627
1628
uint8_t* GraphicControlExtension::_InternalSerialize(
1629
0
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1630
  // @@protoc_insertion_point(serialize_to_array_start:gifProtoFuzzer.GraphicControlExtension)
1631
0
  uint32_t cached_has_bits = 0;
1632
0
  (void) cached_has_bits;
1633
1634
0
  cached_has_bits = _impl_._has_bits_[0];
1635
  // required uint32 Packed = 1;
1636
0
  if (cached_has_bits & 0x00000001u) {
1637
0
    target = stream->EnsureSpace(target);
1638
0
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_packed(), target);
1639
0
  }
1640
1641
  // required uint32 DelayTime = 2;
1642
0
  if (cached_has_bits & 0x00000002u) {
1643
0
    target = stream->EnsureSpace(target);
1644
0
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_delaytime(), target);
1645
0
  }
1646
1647
  // required uint32 transparentColorIndex = 3;
1648
0
  if (cached_has_bits & 0x00000004u) {
1649
0
    target = stream->EnsureSpace(target);
1650
0
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_transparentcolorindex(), target);
1651
0
  }
1652
1653
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1654
0
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1655
0
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
1656
0
  }
1657
  // @@protoc_insertion_point(serialize_to_array_end:gifProtoFuzzer.GraphicControlExtension)
1658
0
  return target;
1659
0
}
1660
1661
0
size_t GraphicControlExtension::RequiredFieldsByteSizeFallback() const {
1662
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:gifProtoFuzzer.GraphicControlExtension)
1663
0
  size_t total_size = 0;
1664
1665
0
  if (_internal_has_packed()) {
1666
    // required uint32 Packed = 1;
1667
0
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_packed());
1668
0
  }
1669
1670
0
  if (_internal_has_delaytime()) {
1671
    // required uint32 DelayTime = 2;
1672
0
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_delaytime());
1673
0
  }
1674
1675
0
  if (_internal_has_transparentcolorindex()) {
1676
    // required uint32 transparentColorIndex = 3;
1677
0
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_transparentcolorindex());
1678
0
  }
1679
1680
0
  return total_size;
1681
0
}
1682
0
size_t GraphicControlExtension::ByteSizeLong() const {
1683
// @@protoc_insertion_point(message_byte_size_start:gifProtoFuzzer.GraphicControlExtension)
1684
0
  size_t total_size = 0;
1685
1686
0
  if (((_impl_._has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) {  // All required fields are present.
1687
    // required uint32 Packed = 1;
1688
0
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_packed());
1689
1690
    // required uint32 DelayTime = 2;
1691
0
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_delaytime());
1692
1693
    // required uint32 transparentColorIndex = 3;
1694
0
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_transparentcolorindex());
1695
1696
0
  } else {
1697
0
    total_size += RequiredFieldsByteSizeFallback();
1698
0
  }
1699
0
  uint32_t cached_has_bits = 0;
1700
  // Prevent compiler warnings about cached_has_bits being unused
1701
0
  (void) cached_has_bits;
1702
1703
0
  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
1704
0
}
1705
1706
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GraphicControlExtension::_class_data_ = {
1707
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
1708
    GraphicControlExtension::MergeImpl
1709
};
1710
0
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GraphicControlExtension::GetClassData() const { return &_class_data_; }
1711
1712
1713
0
void GraphicControlExtension::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
1714
0
  auto* const _this = static_cast<GraphicControlExtension*>(&to_msg);
1715
0
  auto& from = static_cast<const GraphicControlExtension&>(from_msg);
1716
  // @@protoc_insertion_point(class_specific_merge_from_start:gifProtoFuzzer.GraphicControlExtension)
1717
0
  GOOGLE_DCHECK_NE(&from, _this);
1718
0
  uint32_t cached_has_bits = 0;
1719
0
  (void) cached_has_bits;
1720
1721
0
  cached_has_bits = from._impl_._has_bits_[0];
1722
0
  if (cached_has_bits & 0x00000007u) {
1723
0
    if (cached_has_bits & 0x00000001u) {
1724
0
      _this->_impl_.packed_ = from._impl_.packed_;
1725
0
    }
1726
0
    if (cached_has_bits & 0x00000002u) {
1727
0
      _this->_impl_.delaytime_ = from._impl_.delaytime_;
1728
0
    }
1729
0
    if (cached_has_bits & 0x00000004u) {
1730
0
      _this->_impl_.transparentcolorindex_ = from._impl_.transparentcolorindex_;
1731
0
    }
1732
0
    _this->_impl_._has_bits_[0] |= cached_has_bits;
1733
0
  }
1734
0
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1735
0
}
1736
1737
0
void GraphicControlExtension::CopyFrom(const GraphicControlExtension& from) {
1738
// @@protoc_insertion_point(class_specific_copy_from_start:gifProtoFuzzer.GraphicControlExtension)
1739
0
  if (&from == this) return;
1740
0
  Clear();
1741
0
  MergeFrom(from);
1742
0
}
1743
1744
0
bool GraphicControlExtension::IsInitialized() const {
1745
0
  if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false;
1746
0
  return true;
1747
0
}
1748
1749
0
void GraphicControlExtension::InternalSwap(GraphicControlExtension* other) {
1750
0
  using std::swap;
1751
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1752
0
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1753
0
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
1754
0
      PROTOBUF_FIELD_OFFSET(GraphicControlExtension, _impl_.transparentcolorindex_)
1755
0
      + sizeof(GraphicControlExtension::_impl_.transparentcolorindex_)
1756
0
      - PROTOBUF_FIELD_OFFSET(GraphicControlExtension, _impl_.packed_)>(
1757
0
          reinterpret_cast<char*>(&_impl_.packed_),
1758
0
          reinterpret_cast<char*>(&other->_impl_.packed_));
1759
0
}
1760
1761
4.74k
::PROTOBUF_NAMESPACE_ID::Metadata GraphicControlExtension::GetMetadata() const {
1762
4.74k
  return ::_pbi::AssignDescriptors(
1763
4.74k
      &descriptor_table_gif_5ffuzz_5fproto_2eproto_getter, &descriptor_table_gif_5ffuzz_5fproto_2eproto_once,
1764
4.74k
      file_level_metadata_gif_5ffuzz_5fproto_2eproto[3]);
1765
4.74k
}
1766
1767
// ===================================================================
1768
1769
class PlainTextExtension::_Internal {
1770
 public:
1771
  using HasBits = decltype(std::declval<PlainTextExtension>()._impl_._has_bits_);
1772
  static const ::gifProtoFuzzer::GraphicControlExtension& gcext(const PlainTextExtension* msg);
1773
0
  static void set_has_gcext(HasBits* has_bits) {
1774
0
    (*has_bits)[0] |= 1u;
1775
0
  }
1776
};
1777
1778
const ::gifProtoFuzzer::GraphicControlExtension&
1779
0
PlainTextExtension::_Internal::gcext(const PlainTextExtension* msg) {
1780
0
  return *msg->_impl_.gcext_;
1781
0
}
1782
PlainTextExtension::PlainTextExtension(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1783
                         bool is_message_owned)
1784
1.24k
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
1785
1.24k
  SharedCtor(arena, is_message_owned);
1786
  // @@protoc_insertion_point(arena_constructor:gifProtoFuzzer.PlainTextExtension)
1787
1.24k
}
1788
PlainTextExtension::PlainTextExtension(const PlainTextExtension& from)
1789
0
  : ::PROTOBUF_NAMESPACE_ID::Message() {
1790
0
  PlainTextExtension* const _this = this; (void)_this;
1791
0
  new (&_impl_) Impl_{
1792
0
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
1793
0
    , /*decltype(_impl_._cached_size_)*/{}
1794
0
    , decltype(_impl_.subs_){from._impl_.subs_}
1795
0
    , decltype(_impl_.gcext_){nullptr}};
1796
1797
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1798
0
  if (from._internal_has_gcext()) {
1799
0
    _this->_impl_.gcext_ = new ::gifProtoFuzzer::GraphicControlExtension(*from._impl_.gcext_);
1800
0
  }
1801
  // @@protoc_insertion_point(copy_constructor:gifProtoFuzzer.PlainTextExtension)
1802
0
}
1803
1804
inline void PlainTextExtension::SharedCtor(
1805
1.24k
    ::_pb::Arena* arena, bool is_message_owned) {
1806
1.24k
  (void)arena;
1807
1.24k
  (void)is_message_owned;
1808
1.24k
  new (&_impl_) Impl_{
1809
1.24k
      decltype(_impl_._has_bits_){}
1810
1.24k
    , /*decltype(_impl_._cached_size_)*/{}
1811
1.24k
    , decltype(_impl_.subs_){arena}
1812
1.24k
    , decltype(_impl_.gcext_){nullptr}
1813
1.24k
  };
1814
1.24k
}
1815
1816
1.24k
PlainTextExtension::~PlainTextExtension() {
1817
  // @@protoc_insertion_point(destructor:gifProtoFuzzer.PlainTextExtension)
1818
1.24k
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
1819
0
  (void)arena;
1820
0
    return;
1821
0
  }
1822
1.24k
  SharedDtor();
1823
1.24k
}
1824
1825
1.24k
inline void PlainTextExtension::SharedDtor() {
1826
1.24k
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1827
1.24k
  _impl_.subs_.~RepeatedPtrField();
1828
1.24k
  if (this != internal_default_instance()) delete _impl_.gcext_;
1829
1.24k
}
1830
1831
0
void PlainTextExtension::SetCachedSize(int size) const {
1832
0
  _impl_._cached_size_.Set(size);
1833
0
}
1834
1835
0
void PlainTextExtension::Clear() {
1836
// @@protoc_insertion_point(message_clear_start:gifProtoFuzzer.PlainTextExtension)
1837
0
  uint32_t cached_has_bits = 0;
1838
  // Prevent compiler warnings about cached_has_bits being unused
1839
0
  (void) cached_has_bits;
1840
1841
0
  _impl_.subs_.Clear();
1842
0
  cached_has_bits = _impl_._has_bits_[0];
1843
0
  if (cached_has_bits & 0x00000001u) {
1844
0
    GOOGLE_DCHECK(_impl_.gcext_ != nullptr);
1845
0
    _impl_.gcext_->Clear();
1846
0
  }
1847
0
  _impl_._has_bits_.Clear();
1848
0
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1849
0
}
1850
1851
0
const char* PlainTextExtension::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1852
0
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1853
0
  _Internal::HasBits has_bits{};
1854
0
  while (!ctx->Done(&ptr)) {
1855
0
    uint32_t tag;
1856
0
    ptr = ::_pbi::ReadTag(ptr, &tag);
1857
0
    switch (tag >> 3) {
1858
      // repeated .gifProtoFuzzer.SubBlock subs = 1;
1859
0
      case 1:
1860
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
1861
0
          ptr -= 1;
1862
0
          do {
1863
0
            ptr += 1;
1864
0
            ptr = ctx->ParseMessage(_internal_add_subs(), ptr);
1865
0
            CHK_(ptr);
1866
0
            if (!ctx->DataAvailable(ptr)) break;
1867
0
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
1868
0
        } else
1869
0
          goto handle_unusual;
1870
0
        continue;
1871
      // optional .gifProtoFuzzer.GraphicControlExtension gcExt = 2;
1872
0
      case 2:
1873
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
1874
0
          ptr = ctx->ParseMessage(_internal_mutable_gcext(), ptr);
1875
0
          CHK_(ptr);
1876
0
        } else
1877
0
          goto handle_unusual;
1878
0
        continue;
1879
0
      default:
1880
0
        goto handle_unusual;
1881
0
    }  // switch
1882
0
  handle_unusual:
1883
0
    if ((tag == 0) || ((tag & 7) == 4)) {
1884
0
      CHK_(ptr);
1885
0
      ctx->SetLastTag(tag);
1886
0
      goto message_done;
1887
0
    }
1888
0
    ptr = UnknownFieldParse(
1889
0
        tag,
1890
0
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
1891
0
        ptr, ctx);
1892
0
    CHK_(ptr != nullptr);
1893
0
  }  // while
1894
0
message_done:
1895
0
  _impl_._has_bits_.Or(has_bits);
1896
0
  return ptr;
1897
0
failure:
1898
0
  ptr = nullptr;
1899
0
  goto message_done;
1900
0
#undef CHK_
1901
0
}
1902
1903
uint8_t* PlainTextExtension::_InternalSerialize(
1904
0
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1905
  // @@protoc_insertion_point(serialize_to_array_start:gifProtoFuzzer.PlainTextExtension)
1906
0
  uint32_t cached_has_bits = 0;
1907
0
  (void) cached_has_bits;
1908
1909
  // repeated .gifProtoFuzzer.SubBlock subs = 1;
1910
0
  for (unsigned i = 0,
1911
0
      n = static_cast<unsigned>(this->_internal_subs_size()); i < n; i++) {
1912
0
    const auto& repfield = this->_internal_subs(i);
1913
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1914
0
        InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
1915
0
  }
1916
1917
0
  cached_has_bits = _impl_._has_bits_[0];
1918
  // optional .gifProtoFuzzer.GraphicControlExtension gcExt = 2;
1919
0
  if (cached_has_bits & 0x00000001u) {
1920
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1921
0
      InternalWriteMessage(2, _Internal::gcext(this),
1922
0
        _Internal::gcext(this).GetCachedSize(), target, stream);
1923
0
  }
1924
1925
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1926
0
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1927
0
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
1928
0
  }
1929
  // @@protoc_insertion_point(serialize_to_array_end:gifProtoFuzzer.PlainTextExtension)
1930
0
  return target;
1931
0
}
1932
1933
0
size_t PlainTextExtension::ByteSizeLong() const {
1934
// @@protoc_insertion_point(message_byte_size_start:gifProtoFuzzer.PlainTextExtension)
1935
0
  size_t total_size = 0;
1936
1937
0
  uint32_t cached_has_bits = 0;
1938
  // Prevent compiler warnings about cached_has_bits being unused
1939
0
  (void) cached_has_bits;
1940
1941
  // repeated .gifProtoFuzzer.SubBlock subs = 1;
1942
0
  total_size += 1UL * this->_internal_subs_size();
1943
0
  for (const auto& msg : this->_impl_.subs_) {
1944
0
    total_size +=
1945
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1946
0
  }
1947
1948
  // optional .gifProtoFuzzer.GraphicControlExtension gcExt = 2;
1949
0
  cached_has_bits = _impl_._has_bits_[0];
1950
0
  if (cached_has_bits & 0x00000001u) {
1951
0
    total_size += 1 +
1952
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1953
0
        *_impl_.gcext_);
1954
0
  }
1955
1956
0
  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
1957
0
}
1958
1959
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PlainTextExtension::_class_data_ = {
1960
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
1961
    PlainTextExtension::MergeImpl
1962
};
1963
0
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PlainTextExtension::GetClassData() const { return &_class_data_; }
1964
1965
1966
0
void PlainTextExtension::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
1967
0
  auto* const _this = static_cast<PlainTextExtension*>(&to_msg);
1968
0
  auto& from = static_cast<const PlainTextExtension&>(from_msg);
1969
  // @@protoc_insertion_point(class_specific_merge_from_start:gifProtoFuzzer.PlainTextExtension)
1970
0
  GOOGLE_DCHECK_NE(&from, _this);
1971
0
  uint32_t cached_has_bits = 0;
1972
0
  (void) cached_has_bits;
1973
1974
0
  _this->_impl_.subs_.MergeFrom(from._impl_.subs_);
1975
0
  if (from._internal_has_gcext()) {
1976
0
    _this->_internal_mutable_gcext()->::gifProtoFuzzer::GraphicControlExtension::MergeFrom(
1977
0
        from._internal_gcext());
1978
0
  }
1979
0
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1980
0
}
1981
1982
0
void PlainTextExtension::CopyFrom(const PlainTextExtension& from) {
1983
// @@protoc_insertion_point(class_specific_copy_from_start:gifProtoFuzzer.PlainTextExtension)
1984
0
  if (&from == this) return;
1985
0
  Clear();
1986
0
  MergeFrom(from);
1987
0
}
1988
1989
0
bool PlainTextExtension::IsInitialized() const {
1990
0
  if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(_impl_.subs_))
1991
0
    return false;
1992
0
  if (_internal_has_gcext()) {
1993
0
    if (!_impl_.gcext_->IsInitialized()) return false;
1994
0
  }
1995
0
  return true;
1996
0
}
1997
1998
0
void PlainTextExtension::InternalSwap(PlainTextExtension* other) {
1999
0
  using std::swap;
2000
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2001
0
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2002
0
  _impl_.subs_.InternalSwap(&other->_impl_.subs_);
2003
0
  swap(_impl_.gcext_, other->_impl_.gcext_);
2004
0
}
2005
2006
43.2k
::PROTOBUF_NAMESPACE_ID::Metadata PlainTextExtension::GetMetadata() const {
2007
43.2k
  return ::_pbi::AssignDescriptors(
2008
43.2k
      &descriptor_table_gif_5ffuzz_5fproto_2eproto_getter, &descriptor_table_gif_5ffuzz_5fproto_2eproto_once,
2009
43.2k
      file_level_metadata_gif_5ffuzz_5fproto_2eproto[4]);
2010
43.2k
}
2011
2012
// ===================================================================
2013
2014
class LocalColorTable::_Internal {
2015
 public:
2016
  using HasBits = decltype(std::declval<LocalColorTable>()._impl_._has_bits_);
2017
0
  static void set_has_colors(HasBits* has_bits) {
2018
0
    (*has_bits)[0] |= 1u;
2019
0
  }
2020
0
  static bool MissingRequiredFields(const HasBits& has_bits) {
2021
0
    return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0;
2022
0
  }
2023
};
2024
2025
LocalColorTable::LocalColorTable(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2026
                         bool is_message_owned)
2027
2.12k
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
2028
2.12k
  SharedCtor(arena, is_message_owned);
2029
  // @@protoc_insertion_point(arena_constructor:gifProtoFuzzer.LocalColorTable)
2030
2.12k
}
2031
LocalColorTable::LocalColorTable(const LocalColorTable& from)
2032
0
  : ::PROTOBUF_NAMESPACE_ID::Message() {
2033
0
  LocalColorTable* const _this = this; (void)_this;
2034
0
  new (&_impl_) Impl_{
2035
0
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
2036
0
    , /*decltype(_impl_._cached_size_)*/{}
2037
0
    , decltype(_impl_.colors_){}};
2038
2039
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2040
0
  _impl_.colors_.InitDefault();
2041
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2042
    _impl_.colors_.Set("", GetArenaForAllocation());
2043
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2044
0
  if (from._internal_has_colors()) {
2045
0
    _this->_impl_.colors_.Set(from._internal_colors(), 
2046
0
      _this->GetArenaForAllocation());
2047
0
  }
2048
  // @@protoc_insertion_point(copy_constructor:gifProtoFuzzer.LocalColorTable)
2049
0
}
2050
2051
inline void LocalColorTable::SharedCtor(
2052
2.12k
    ::_pb::Arena* arena, bool is_message_owned) {
2053
2.12k
  (void)arena;
2054
2.12k
  (void)is_message_owned;
2055
2.12k
  new (&_impl_) Impl_{
2056
2.12k
      decltype(_impl_._has_bits_){}
2057
2.12k
    , /*decltype(_impl_._cached_size_)*/{}
2058
2.12k
    , decltype(_impl_.colors_){}
2059
2.12k
  };
2060
2.12k
  _impl_.colors_.InitDefault();
2061
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2062
    _impl_.colors_.Set("", GetArenaForAllocation());
2063
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2064
2.12k
}
2065
2066
2.12k
LocalColorTable::~LocalColorTable() {
2067
  // @@protoc_insertion_point(destructor:gifProtoFuzzer.LocalColorTable)
2068
2.12k
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
2069
0
  (void)arena;
2070
0
    return;
2071
0
  }
2072
2.12k
  SharedDtor();
2073
2.12k
}
2074
2075
2.12k
inline void LocalColorTable::SharedDtor() {
2076
2.12k
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2077
2.12k
  _impl_.colors_.Destroy();
2078
2.12k
}
2079
2080
0
void LocalColorTable::SetCachedSize(int size) const {
2081
0
  _impl_._cached_size_.Set(size);
2082
0
}
2083
2084
1.53k
void LocalColorTable::Clear() {
2085
// @@protoc_insertion_point(message_clear_start:gifProtoFuzzer.LocalColorTable)
2086
1.53k
  uint32_t cached_has_bits = 0;
2087
  // Prevent compiler warnings about cached_has_bits being unused
2088
1.53k
  (void) cached_has_bits;
2089
2090
1.53k
  cached_has_bits = _impl_._has_bits_[0];
2091
1.53k
  if (cached_has_bits & 0x00000001u) {
2092
0
    _impl_.colors_.ClearNonDefaultToEmpty();
2093
0
  }
2094
1.53k
  _impl_._has_bits_.Clear();
2095
1.53k
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
2096
1.53k
}
2097
2098
0
const char* LocalColorTable::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2099
0
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2100
0
  _Internal::HasBits has_bits{};
2101
0
  while (!ctx->Done(&ptr)) {
2102
0
    uint32_t tag;
2103
0
    ptr = ::_pbi::ReadTag(ptr, &tag);
2104
0
    switch (tag >> 3) {
2105
      // required bytes colors = 1;
2106
0
      case 1:
2107
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
2108
0
          auto str = _internal_mutable_colors();
2109
0
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
2110
0
          CHK_(ptr);
2111
0
        } else
2112
0
          goto handle_unusual;
2113
0
        continue;
2114
0
      default:
2115
0
        goto handle_unusual;
2116
0
    }  // switch
2117
0
  handle_unusual:
2118
0
    if ((tag == 0) || ((tag & 7) == 4)) {
2119
0
      CHK_(ptr);
2120
0
      ctx->SetLastTag(tag);
2121
0
      goto message_done;
2122
0
    }
2123
0
    ptr = UnknownFieldParse(
2124
0
        tag,
2125
0
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
2126
0
        ptr, ctx);
2127
0
    CHK_(ptr != nullptr);
2128
0
  }  // while
2129
0
message_done:
2130
0
  _impl_._has_bits_.Or(has_bits);
2131
0
  return ptr;
2132
0
failure:
2133
0
  ptr = nullptr;
2134
0
  goto message_done;
2135
0
#undef CHK_
2136
0
}
2137
2138
uint8_t* LocalColorTable::_InternalSerialize(
2139
0
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2140
  // @@protoc_insertion_point(serialize_to_array_start:gifProtoFuzzer.LocalColorTable)
2141
0
  uint32_t cached_has_bits = 0;
2142
0
  (void) cached_has_bits;
2143
2144
0
  cached_has_bits = _impl_._has_bits_[0];
2145
  // required bytes colors = 1;
2146
0
  if (cached_has_bits & 0x00000001u) {
2147
0
    target = stream->WriteBytesMaybeAliased(
2148
0
        1, this->_internal_colors(), target);
2149
0
  }
2150
2151
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2152
0
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2153
0
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
2154
0
  }
2155
  // @@protoc_insertion_point(serialize_to_array_end:gifProtoFuzzer.LocalColorTable)
2156
0
  return target;
2157
0
}
2158
2159
0
size_t LocalColorTable::ByteSizeLong() const {
2160
// @@protoc_insertion_point(message_byte_size_start:gifProtoFuzzer.LocalColorTable)
2161
0
  size_t total_size = 0;
2162
2163
  // required bytes colors = 1;
2164
0
  if (_internal_has_colors()) {
2165
0
    total_size += 1 +
2166
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
2167
0
        this->_internal_colors());
2168
0
  }
2169
0
  uint32_t cached_has_bits = 0;
2170
  // Prevent compiler warnings about cached_has_bits being unused
2171
0
  (void) cached_has_bits;
2172
2173
0
  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
2174
0
}
2175
2176
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LocalColorTable::_class_data_ = {
2177
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
2178
    LocalColorTable::MergeImpl
2179
};
2180
2.30k
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LocalColorTable::GetClassData() const { return &_class_data_; }
2181
2182
2183
768
void LocalColorTable::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
2184
768
  auto* const _this = static_cast<LocalColorTable*>(&to_msg);
2185
768
  auto& from = static_cast<const LocalColorTable&>(from_msg);
2186
  // @@protoc_insertion_point(class_specific_merge_from_start:gifProtoFuzzer.LocalColorTable)
2187
768
  GOOGLE_DCHECK_NE(&from, _this);
2188
768
  uint32_t cached_has_bits = 0;
2189
768
  (void) cached_has_bits;
2190
2191
768
  if (from._internal_has_colors()) {
2192
0
    _this->_internal_set_colors(from._internal_colors());
2193
0
  }
2194
768
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2195
768
}
2196
2197
0
void LocalColorTable::CopyFrom(const LocalColorTable& from) {
2198
// @@protoc_insertion_point(class_specific_copy_from_start:gifProtoFuzzer.LocalColorTable)
2199
0
  if (&from == this) return;
2200
0
  Clear();
2201
0
  MergeFrom(from);
2202
0
}
2203
2204
0
bool LocalColorTable::IsInitialized() const {
2205
0
  if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false;
2206
0
  return true;
2207
0
}
2208
2209
0
void LocalColorTable::InternalSwap(LocalColorTable* other) {
2210
0
  using std::swap;
2211
0
  auto* lhs_arena = GetArenaForAllocation();
2212
0
  auto* rhs_arena = other->GetArenaForAllocation();
2213
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2214
0
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2215
0
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
2216
0
      &_impl_.colors_, lhs_arena,
2217
0
      &other->_impl_.colors_, rhs_arena
2218
0
  );
2219
0
}
2220
2221
8.74k
::PROTOBUF_NAMESPACE_ID::Metadata LocalColorTable::GetMetadata() const {
2222
8.74k
  return ::_pbi::AssignDescriptors(
2223
8.74k
      &descriptor_table_gif_5ffuzz_5fproto_2eproto_getter, &descriptor_table_gif_5ffuzz_5fproto_2eproto_once,
2224
8.74k
      file_level_metadata_gif_5ffuzz_5fproto_2eproto[5]);
2225
8.74k
}
2226
2227
// ===================================================================
2228
2229
class SubBlock::_Internal {
2230
 public:
2231
  using HasBits = decltype(std::declval<SubBlock>()._impl_._has_bits_);
2232
0
  static void set_has_len(HasBits* has_bits) {
2233
0
    (*has_bits)[0] |= 2u;
2234
0
  }
2235
0
  static void set_has_data(HasBits* has_bits) {
2236
0
    (*has_bits)[0] |= 1u;
2237
0
  }
2238
0
  static bool MissingRequiredFields(const HasBits& has_bits) {
2239
0
    return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0;
2240
0
  }
2241
};
2242
2243
SubBlock::SubBlock(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2244
                         bool is_message_owned)
2245
60.3k
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
2246
60.3k
  SharedCtor(arena, is_message_owned);
2247
  // @@protoc_insertion_point(arena_constructor:gifProtoFuzzer.SubBlock)
2248
60.3k
}
2249
SubBlock::SubBlock(const SubBlock& from)
2250
0
  : ::PROTOBUF_NAMESPACE_ID::Message() {
2251
0
  SubBlock* const _this = this; (void)_this;
2252
0
  new (&_impl_) Impl_{
2253
0
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
2254
0
    , /*decltype(_impl_._cached_size_)*/{}
2255
0
    , decltype(_impl_.data_){}
2256
0
    , decltype(_impl_.len_){}};
2257
2258
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2259
0
  _impl_.data_.InitDefault();
2260
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2261
    _impl_.data_.Set("", GetArenaForAllocation());
2262
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2263
0
  if (from._internal_has_data()) {
2264
0
    _this->_impl_.data_.Set(from._internal_data(), 
2265
0
      _this->GetArenaForAllocation());
2266
0
  }
2267
0
  _this->_impl_.len_ = from._impl_.len_;
2268
  // @@protoc_insertion_point(copy_constructor:gifProtoFuzzer.SubBlock)
2269
0
}
2270
2271
inline void SubBlock::SharedCtor(
2272
60.3k
    ::_pb::Arena* arena, bool is_message_owned) {
2273
60.3k
  (void)arena;
2274
60.3k
  (void)is_message_owned;
2275
60.3k
  new (&_impl_) Impl_{
2276
60.3k
      decltype(_impl_._has_bits_){}
2277
60.3k
    , /*decltype(_impl_._cached_size_)*/{}
2278
60.3k
    , decltype(_impl_.data_){}
2279
60.3k
    , decltype(_impl_.len_){0u}
2280
60.3k
  };
2281
60.3k
  _impl_.data_.InitDefault();
2282
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2283
    _impl_.data_.Set("", GetArenaForAllocation());
2284
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2285
60.3k
}
2286
2287
60.3k
SubBlock::~SubBlock() {
2288
  // @@protoc_insertion_point(destructor:gifProtoFuzzer.SubBlock)
2289
60.3k
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
2290
0
  (void)arena;
2291
0
    return;
2292
0
  }
2293
60.3k
  SharedDtor();
2294
60.3k
}
2295
2296
60.3k
inline void SubBlock::SharedDtor() {
2297
60.3k
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2298
60.3k
  _impl_.data_.Destroy();
2299
60.3k
}
2300
2301
0
void SubBlock::SetCachedSize(int size) const {
2302
0
  _impl_._cached_size_.Set(size);
2303
0
}
2304
2305
0
void SubBlock::Clear() {
2306
// @@protoc_insertion_point(message_clear_start:gifProtoFuzzer.SubBlock)
2307
0
  uint32_t cached_has_bits = 0;
2308
  // Prevent compiler warnings about cached_has_bits being unused
2309
0
  (void) cached_has_bits;
2310
2311
0
  cached_has_bits = _impl_._has_bits_[0];
2312
0
  if (cached_has_bits & 0x00000001u) {
2313
0
    _impl_.data_.ClearNonDefaultToEmpty();
2314
0
  }
2315
0
  _impl_.len_ = 0u;
2316
0
  _impl_._has_bits_.Clear();
2317
0
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
2318
0
}
2319
2320
0
const char* SubBlock::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2321
0
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2322
0
  _Internal::HasBits has_bits{};
2323
0
  while (!ctx->Done(&ptr)) {
2324
0
    uint32_t tag;
2325
0
    ptr = ::_pbi::ReadTag(ptr, &tag);
2326
0
    switch (tag >> 3) {
2327
      // required uint32 len = 1;
2328
0
      case 1:
2329
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
2330
0
          _Internal::set_has_len(&has_bits);
2331
0
          _impl_.len_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2332
0
          CHK_(ptr);
2333
0
        } else
2334
0
          goto handle_unusual;
2335
0
        continue;
2336
      // required bytes data = 2;
2337
0
      case 2:
2338
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
2339
0
          auto str = _internal_mutable_data();
2340
0
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
2341
0
          CHK_(ptr);
2342
0
        } else
2343
0
          goto handle_unusual;
2344
0
        continue;
2345
0
      default:
2346
0
        goto handle_unusual;
2347
0
    }  // switch
2348
0
  handle_unusual:
2349
0
    if ((tag == 0) || ((tag & 7) == 4)) {
2350
0
      CHK_(ptr);
2351
0
      ctx->SetLastTag(tag);
2352
0
      goto message_done;
2353
0
    }
2354
0
    ptr = UnknownFieldParse(
2355
0
        tag,
2356
0
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
2357
0
        ptr, ctx);
2358
0
    CHK_(ptr != nullptr);
2359
0
  }  // while
2360
0
message_done:
2361
0
  _impl_._has_bits_.Or(has_bits);
2362
0
  return ptr;
2363
0
failure:
2364
0
  ptr = nullptr;
2365
0
  goto message_done;
2366
0
#undef CHK_
2367
0
}
2368
2369
uint8_t* SubBlock::_InternalSerialize(
2370
0
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2371
  // @@protoc_insertion_point(serialize_to_array_start:gifProtoFuzzer.SubBlock)
2372
0
  uint32_t cached_has_bits = 0;
2373
0
  (void) cached_has_bits;
2374
2375
0
  cached_has_bits = _impl_._has_bits_[0];
2376
  // required uint32 len = 1;
2377
0
  if (cached_has_bits & 0x00000002u) {
2378
0
    target = stream->EnsureSpace(target);
2379
0
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_len(), target);
2380
0
  }
2381
2382
  // required bytes data = 2;
2383
0
  if (cached_has_bits & 0x00000001u) {
2384
0
    target = stream->WriteBytesMaybeAliased(
2385
0
        2, this->_internal_data(), target);
2386
0
  }
2387
2388
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2389
0
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2390
0
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
2391
0
  }
2392
  // @@protoc_insertion_point(serialize_to_array_end:gifProtoFuzzer.SubBlock)
2393
0
  return target;
2394
0
}
2395
2396
0
size_t SubBlock::RequiredFieldsByteSizeFallback() const {
2397
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:gifProtoFuzzer.SubBlock)
2398
0
  size_t total_size = 0;
2399
2400
0
  if (_internal_has_data()) {
2401
    // required bytes data = 2;
2402
0
    total_size += 1 +
2403
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
2404
0
        this->_internal_data());
2405
0
  }
2406
2407
0
  if (_internal_has_len()) {
2408
    // required uint32 len = 1;
2409
0
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_len());
2410
0
  }
2411
2412
0
  return total_size;
2413
0
}
2414
0
size_t SubBlock::ByteSizeLong() const {
2415
// @@protoc_insertion_point(message_byte_size_start:gifProtoFuzzer.SubBlock)
2416
0
  size_t total_size = 0;
2417
2418
0
  if (((_impl_._has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) {  // All required fields are present.
2419
    // required bytes data = 2;
2420
0
    total_size += 1 +
2421
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
2422
0
        this->_internal_data());
2423
2424
    // required uint32 len = 1;
2425
0
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_len());
2426
2427
0
  } else {
2428
0
    total_size += RequiredFieldsByteSizeFallback();
2429
0
  }
2430
0
  uint32_t cached_has_bits = 0;
2431
  // Prevent compiler warnings about cached_has_bits being unused
2432
0
  (void) cached_has_bits;
2433
2434
0
  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
2435
0
}
2436
2437
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SubBlock::_class_data_ = {
2438
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
2439
    SubBlock::MergeImpl
2440
};
2441
0
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SubBlock::GetClassData() const { return &_class_data_; }
2442
2443
2444
0
void SubBlock::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
2445
0
  auto* const _this = static_cast<SubBlock*>(&to_msg);
2446
0
  auto& from = static_cast<const SubBlock&>(from_msg);
2447
  // @@protoc_insertion_point(class_specific_merge_from_start:gifProtoFuzzer.SubBlock)
2448
0
  GOOGLE_DCHECK_NE(&from, _this);
2449
0
  uint32_t cached_has_bits = 0;
2450
0
  (void) cached_has_bits;
2451
2452
0
  cached_has_bits = from._impl_._has_bits_[0];
2453
0
  if (cached_has_bits & 0x00000003u) {
2454
0
    if (cached_has_bits & 0x00000001u) {
2455
0
      _this->_internal_set_data(from._internal_data());
2456
0
    }
2457
0
    if (cached_has_bits & 0x00000002u) {
2458
0
      _this->_impl_.len_ = from._impl_.len_;
2459
0
    }
2460
0
    _this->_impl_._has_bits_[0] |= cached_has_bits;
2461
0
  }
2462
0
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2463
0
}
2464
2465
0
void SubBlock::CopyFrom(const SubBlock& from) {
2466
// @@protoc_insertion_point(class_specific_copy_from_start:gifProtoFuzzer.SubBlock)
2467
0
  if (&from == this) return;
2468
0
  Clear();
2469
0
  MergeFrom(from);
2470
0
}
2471
2472
0
bool SubBlock::IsInitialized() const {
2473
0
  if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false;
2474
0
  return true;
2475
0
}
2476
2477
0
void SubBlock::InternalSwap(SubBlock* other) {
2478
0
  using std::swap;
2479
0
  auto* lhs_arena = GetArenaForAllocation();
2480
0
  auto* rhs_arena = other->GetArenaForAllocation();
2481
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2482
0
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2483
0
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
2484
0
      &_impl_.data_, lhs_arena,
2485
0
      &other->_impl_.data_, rhs_arena
2486
0
  );
2487
0
  swap(_impl_.len_, other->_impl_.len_);
2488
0
}
2489
2490
715k
::PROTOBUF_NAMESPACE_ID::Metadata SubBlock::GetMetadata() const {
2491
715k
  return ::_pbi::AssignDescriptors(
2492
715k
      &descriptor_table_gif_5ffuzz_5fproto_2eproto_getter, &descriptor_table_gif_5ffuzz_5fproto_2eproto_once,
2493
715k
      file_level_metadata_gif_5ffuzz_5fproto_2eproto[6]);
2494
715k
}
2495
2496
// ===================================================================
2497
2498
class ImageData::_Internal {
2499
 public:
2500
  using HasBits = decltype(std::declval<ImageData>()._impl_._has_bits_);
2501
0
  static void set_has_lzw(HasBits* has_bits) {
2502
0
    (*has_bits)[0] |= 1u;
2503
0
  }
2504
0
  static bool MissingRequiredFields(const HasBits& has_bits) {
2505
0
    return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0;
2506
0
  }
2507
};
2508
2509
ImageData::ImageData(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2510
                         bool is_message_owned)
2511
2.16k
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
2512
2.16k
  SharedCtor(arena, is_message_owned);
2513
  // @@protoc_insertion_point(arena_constructor:gifProtoFuzzer.ImageData)
2514
2.16k
}
2515
ImageData::ImageData(const ImageData& from)
2516
0
  : ::PROTOBUF_NAMESPACE_ID::Message() {
2517
0
  ImageData* const _this = this; (void)_this;
2518
0
  new (&_impl_) Impl_{
2519
0
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
2520
0
    , /*decltype(_impl_._cached_size_)*/{}
2521
0
    , decltype(_impl_.subs_){from._impl_.subs_}
2522
0
    , decltype(_impl_.lzw_){}};
2523
2524
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2525
0
  _this->_impl_.lzw_ = from._impl_.lzw_;
2526
  // @@protoc_insertion_point(copy_constructor:gifProtoFuzzer.ImageData)
2527
0
}
2528
2529
inline void ImageData::SharedCtor(
2530
2.16k
    ::_pb::Arena* arena, bool is_message_owned) {
2531
2.16k
  (void)arena;
2532
2.16k
  (void)is_message_owned;
2533
2.16k
  new (&_impl_) Impl_{
2534
2.16k
      decltype(_impl_._has_bits_){}
2535
2.16k
    , /*decltype(_impl_._cached_size_)*/{}
2536
2.16k
    , decltype(_impl_.subs_){arena}
2537
2.16k
    , decltype(_impl_.lzw_){0u}
2538
2.16k
  };
2539
2.16k
}
2540
2541
2.16k
ImageData::~ImageData() {
2542
  // @@protoc_insertion_point(destructor:gifProtoFuzzer.ImageData)
2543
2.16k
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
2544
0
  (void)arena;
2545
0
    return;
2546
0
  }
2547
2.16k
  SharedDtor();
2548
2.16k
}
2549
2550
2.16k
inline void ImageData::SharedDtor() {
2551
2.16k
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2552
2.16k
  _impl_.subs_.~RepeatedPtrField();
2553
2.16k
}
2554
2555
0
void ImageData::SetCachedSize(int size) const {
2556
0
  _impl_._cached_size_.Set(size);
2557
0
}
2558
2559
1.61k
void ImageData::Clear() {
2560
// @@protoc_insertion_point(message_clear_start:gifProtoFuzzer.ImageData)
2561
1.61k
  uint32_t cached_has_bits = 0;
2562
  // Prevent compiler warnings about cached_has_bits being unused
2563
1.61k
  (void) cached_has_bits;
2564
2565
1.61k
  _impl_.subs_.Clear();
2566
1.61k
  _impl_.lzw_ = 0u;
2567
1.61k
  _impl_._has_bits_.Clear();
2568
1.61k
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
2569
1.61k
}
2570
2571
0
const char* ImageData::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2572
0
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2573
0
  _Internal::HasBits has_bits{};
2574
0
  while (!ctx->Done(&ptr)) {
2575
0
    uint32_t tag;
2576
0
    ptr = ::_pbi::ReadTag(ptr, &tag);
2577
0
    switch (tag >> 3) {
2578
      // required uint32 lzw = 1;
2579
0
      case 1:
2580
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
2581
0
          _Internal::set_has_lzw(&has_bits);
2582
0
          _impl_.lzw_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2583
0
          CHK_(ptr);
2584
0
        } else
2585
0
          goto handle_unusual;
2586
0
        continue;
2587
      // repeated .gifProtoFuzzer.SubBlock subs = 2;
2588
0
      case 2:
2589
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
2590
0
          ptr -= 1;
2591
0
          do {
2592
0
            ptr += 1;
2593
0
            ptr = ctx->ParseMessage(_internal_add_subs(), ptr);
2594
0
            CHK_(ptr);
2595
0
            if (!ctx->DataAvailable(ptr)) break;
2596
0
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
2597
0
        } else
2598
0
          goto handle_unusual;
2599
0
        continue;
2600
0
      default:
2601
0
        goto handle_unusual;
2602
0
    }  // switch
2603
0
  handle_unusual:
2604
0
    if ((tag == 0) || ((tag & 7) == 4)) {
2605
0
      CHK_(ptr);
2606
0
      ctx->SetLastTag(tag);
2607
0
      goto message_done;
2608
0
    }
2609
0
    ptr = UnknownFieldParse(
2610
0
        tag,
2611
0
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
2612
0
        ptr, ctx);
2613
0
    CHK_(ptr != nullptr);
2614
0
  }  // while
2615
0
message_done:
2616
0
  _impl_._has_bits_.Or(has_bits);
2617
0
  return ptr;
2618
0
failure:
2619
0
  ptr = nullptr;
2620
0
  goto message_done;
2621
0
#undef CHK_
2622
0
}
2623
2624
uint8_t* ImageData::_InternalSerialize(
2625
0
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2626
  // @@protoc_insertion_point(serialize_to_array_start:gifProtoFuzzer.ImageData)
2627
0
  uint32_t cached_has_bits = 0;
2628
0
  (void) cached_has_bits;
2629
2630
0
  cached_has_bits = _impl_._has_bits_[0];
2631
  // required uint32 lzw = 1;
2632
0
  if (cached_has_bits & 0x00000001u) {
2633
0
    target = stream->EnsureSpace(target);
2634
0
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_lzw(), target);
2635
0
  }
2636
2637
  // repeated .gifProtoFuzzer.SubBlock subs = 2;
2638
0
  for (unsigned i = 0,
2639
0
      n = static_cast<unsigned>(this->_internal_subs_size()); i < n; i++) {
2640
0
    const auto& repfield = this->_internal_subs(i);
2641
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2642
0
        InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
2643
0
  }
2644
2645
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2646
0
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2647
0
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
2648
0
  }
2649
  // @@protoc_insertion_point(serialize_to_array_end:gifProtoFuzzer.ImageData)
2650
0
  return target;
2651
0
}
2652
2653
0
size_t ImageData::ByteSizeLong() const {
2654
// @@protoc_insertion_point(message_byte_size_start:gifProtoFuzzer.ImageData)
2655
0
  size_t total_size = 0;
2656
2657
  // required uint32 lzw = 1;
2658
0
  if (_internal_has_lzw()) {
2659
0
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_lzw());
2660
0
  }
2661
0
  uint32_t cached_has_bits = 0;
2662
  // Prevent compiler warnings about cached_has_bits being unused
2663
0
  (void) cached_has_bits;
2664
2665
  // repeated .gifProtoFuzzer.SubBlock subs = 2;
2666
0
  total_size += 1UL * this->_internal_subs_size();
2667
0
  for (const auto& msg : this->_impl_.subs_) {
2668
0
    total_size +=
2669
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
2670
0
  }
2671
2672
0
  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
2673
0
}
2674
2675
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ImageData::_class_data_ = {
2676
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
2677
    ImageData::MergeImpl
2678
};
2679
2.42k
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ImageData::GetClassData() const { return &_class_data_; }
2680
2681
2682
808
void ImageData::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
2683
808
  auto* const _this = static_cast<ImageData*>(&to_msg);
2684
808
  auto& from = static_cast<const ImageData&>(from_msg);
2685
  // @@protoc_insertion_point(class_specific_merge_from_start:gifProtoFuzzer.ImageData)
2686
808
  GOOGLE_DCHECK_NE(&from, _this);
2687
808
  uint32_t cached_has_bits = 0;
2688
808
  (void) cached_has_bits;
2689
2690
808
  _this->_impl_.subs_.MergeFrom(from._impl_.subs_);
2691
808
  if (from._internal_has_lzw()) {
2692
0
    _this->_internal_set_lzw(from._internal_lzw());
2693
0
  }
2694
808
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2695
808
}
2696
2697
0
void ImageData::CopyFrom(const ImageData& from) {
2698
// @@protoc_insertion_point(class_specific_copy_from_start:gifProtoFuzzer.ImageData)
2699
0
  if (&from == this) return;
2700
0
  Clear();
2701
0
  MergeFrom(from);
2702
0
}
2703
2704
0
bool ImageData::IsInitialized() const {
2705
0
  if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false;
2706
0
  if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(_impl_.subs_))
2707
0
    return false;
2708
0
  return true;
2709
0
}
2710
2711
0
void ImageData::InternalSwap(ImageData* other) {
2712
0
  using std::swap;
2713
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2714
0
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2715
0
  _impl_.subs_.InternalSwap(&other->_impl_.subs_);
2716
0
  swap(_impl_.lzw_, other->_impl_.lzw_);
2717
0
}
2718
2719
11.5k
::PROTOBUF_NAMESPACE_ID::Metadata ImageData::GetMetadata() const {
2720
11.5k
  return ::_pbi::AssignDescriptors(
2721
11.5k
      &descriptor_table_gif_5ffuzz_5fproto_2eproto_getter, &descriptor_table_gif_5ffuzz_5fproto_2eproto_once,
2722
11.5k
      file_level_metadata_gif_5ffuzz_5fproto_2eproto[7]);
2723
11.5k
}
2724
2725
// ===================================================================
2726
2727
class BasicChunk::_Internal {
2728
 public:
2729
  using HasBits = decltype(std::declval<BasicChunk>()._impl_._has_bits_);
2730
  static const ::gifProtoFuzzer::ImageDescriptor& imdescriptor(const BasicChunk* msg);
2731
0
  static void set_has_imdescriptor(HasBits* has_bits) {
2732
0
    (*has_bits)[0] |= 1u;
2733
0
  }
2734
  static const ::gifProtoFuzzer::LocalColorTable& lct(const BasicChunk* msg);
2735
0
  static void set_has_lct(HasBits* has_bits) {
2736
0
    (*has_bits)[0] |= 2u;
2737
0
  }
2738
  static const ::gifProtoFuzzer::ImageData& img(const BasicChunk* msg);
2739
0
  static void set_has_img(HasBits* has_bits) {
2740
0
    (*has_bits)[0] |= 4u;
2741
0
  }
2742
  static const ::gifProtoFuzzer::GraphicControlExtension& gcext(const BasicChunk* msg);
2743
0
  static void set_has_gcext(HasBits* has_bits) {
2744
0
    (*has_bits)[0] |= 8u;
2745
0
  }
2746
0
  static bool MissingRequiredFields(const HasBits& has_bits) {
2747
0
    return ((has_bits[0] & 0x00000007) ^ 0x00000007) != 0;
2748
0
  }
2749
};
2750
2751
const ::gifProtoFuzzer::ImageDescriptor&
2752
0
BasicChunk::_Internal::imdescriptor(const BasicChunk* msg) {
2753
0
  return *msg->_impl_.imdescriptor_;
2754
0
}
2755
const ::gifProtoFuzzer::LocalColorTable&
2756
0
BasicChunk::_Internal::lct(const BasicChunk* msg) {
2757
0
  return *msg->_impl_.lct_;
2758
0
}
2759
const ::gifProtoFuzzer::ImageData&
2760
0
BasicChunk::_Internal::img(const BasicChunk* msg) {
2761
0
  return *msg->_impl_.img_;
2762
0
}
2763
const ::gifProtoFuzzer::GraphicControlExtension&
2764
0
BasicChunk::_Internal::gcext(const BasicChunk* msg) {
2765
0
  return *msg->_impl_.gcext_;
2766
0
}
2767
BasicChunk::BasicChunk(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2768
                         bool is_message_owned)
2769
1.76k
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
2770
1.76k
  SharedCtor(arena, is_message_owned);
2771
  // @@protoc_insertion_point(arena_constructor:gifProtoFuzzer.BasicChunk)
2772
1.76k
}
2773
BasicChunk::BasicChunk(const BasicChunk& from)
2774
0
  : ::PROTOBUF_NAMESPACE_ID::Message() {
2775
0
  BasicChunk* const _this = this; (void)_this;
2776
0
  new (&_impl_) Impl_{
2777
0
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
2778
0
    , /*decltype(_impl_._cached_size_)*/{}
2779
0
    , decltype(_impl_.imdescriptor_){nullptr}
2780
0
    , decltype(_impl_.lct_){nullptr}
2781
0
    , decltype(_impl_.img_){nullptr}
2782
0
    , decltype(_impl_.gcext_){nullptr}};
2783
2784
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2785
0
  if (from._internal_has_imdescriptor()) {
2786
0
    _this->_impl_.imdescriptor_ = new ::gifProtoFuzzer::ImageDescriptor(*from._impl_.imdescriptor_);
2787
0
  }
2788
0
  if (from._internal_has_lct()) {
2789
0
    _this->_impl_.lct_ = new ::gifProtoFuzzer::LocalColorTable(*from._impl_.lct_);
2790
0
  }
2791
0
  if (from._internal_has_img()) {
2792
0
    _this->_impl_.img_ = new ::gifProtoFuzzer::ImageData(*from._impl_.img_);
2793
0
  }
2794
0
  if (from._internal_has_gcext()) {
2795
0
    _this->_impl_.gcext_ = new ::gifProtoFuzzer::GraphicControlExtension(*from._impl_.gcext_);
2796
0
  }
2797
  // @@protoc_insertion_point(copy_constructor:gifProtoFuzzer.BasicChunk)
2798
0
}
2799
2800
inline void BasicChunk::SharedCtor(
2801
1.76k
    ::_pb::Arena* arena, bool is_message_owned) {
2802
1.76k
  (void)arena;
2803
1.76k
  (void)is_message_owned;
2804
1.76k
  new (&_impl_) Impl_{
2805
1.76k
      decltype(_impl_._has_bits_){}
2806
1.76k
    , /*decltype(_impl_._cached_size_)*/{}
2807
1.76k
    , decltype(_impl_.imdescriptor_){nullptr}
2808
1.76k
    , decltype(_impl_.lct_){nullptr}
2809
1.76k
    , decltype(_impl_.img_){nullptr}
2810
1.76k
    , decltype(_impl_.gcext_){nullptr}
2811
1.76k
  };
2812
1.76k
}
2813
2814
1.76k
BasicChunk::~BasicChunk() {
2815
  // @@protoc_insertion_point(destructor:gifProtoFuzzer.BasicChunk)
2816
1.76k
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
2817
0
  (void)arena;
2818
0
    return;
2819
0
  }
2820
1.76k
  SharedDtor();
2821
1.76k
}
2822
2823
1.76k
inline void BasicChunk::SharedDtor() {
2824
1.76k
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2825
1.76k
  if (this != internal_default_instance()) delete _impl_.imdescriptor_;
2826
1.76k
  if (this != internal_default_instance()) delete _impl_.lct_;
2827
1.76k
  if (this != internal_default_instance()) delete _impl_.img_;
2828
1.76k
  if (this != internal_default_instance()) delete _impl_.gcext_;
2829
1.76k
}
2830
2831
0
void BasicChunk::SetCachedSize(int size) const {
2832
0
  _impl_._cached_size_.Set(size);
2833
0
}
2834
2835
0
void BasicChunk::Clear() {
2836
// @@protoc_insertion_point(message_clear_start:gifProtoFuzzer.BasicChunk)
2837
0
  uint32_t cached_has_bits = 0;
2838
  // Prevent compiler warnings about cached_has_bits being unused
2839
0
  (void) cached_has_bits;
2840
2841
0
  cached_has_bits = _impl_._has_bits_[0];
2842
0
  if (cached_has_bits & 0x0000000fu) {
2843
0
    if (cached_has_bits & 0x00000001u) {
2844
0
      GOOGLE_DCHECK(_impl_.imdescriptor_ != nullptr);
2845
0
      _impl_.imdescriptor_->Clear();
2846
0
    }
2847
0
    if (cached_has_bits & 0x00000002u) {
2848
0
      GOOGLE_DCHECK(_impl_.lct_ != nullptr);
2849
0
      _impl_.lct_->Clear();
2850
0
    }
2851
0
    if (cached_has_bits & 0x00000004u) {
2852
0
      GOOGLE_DCHECK(_impl_.img_ != nullptr);
2853
0
      _impl_.img_->Clear();
2854
0
    }
2855
0
    if (cached_has_bits & 0x00000008u) {
2856
0
      GOOGLE_DCHECK(_impl_.gcext_ != nullptr);
2857
0
      _impl_.gcext_->Clear();
2858
0
    }
2859
0
  }
2860
0
  _impl_._has_bits_.Clear();
2861
0
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
2862
0
}
2863
2864
0
const char* BasicChunk::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2865
0
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2866
0
  _Internal::HasBits has_bits{};
2867
0
  while (!ctx->Done(&ptr)) {
2868
0
    uint32_t tag;
2869
0
    ptr = ::_pbi::ReadTag(ptr, &tag);
2870
0
    switch (tag >> 3) {
2871
      // required .gifProtoFuzzer.ImageDescriptor imDescriptor = 1;
2872
0
      case 1:
2873
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
2874
0
          ptr = ctx->ParseMessage(_internal_mutable_imdescriptor(), ptr);
2875
0
          CHK_(ptr);
2876
0
        } else
2877
0
          goto handle_unusual;
2878
0
        continue;
2879
      // required .gifProtoFuzzer.LocalColorTable lct = 2;
2880
0
      case 2:
2881
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
2882
0
          ptr = ctx->ParseMessage(_internal_mutable_lct(), ptr);
2883
0
          CHK_(ptr);
2884
0
        } else
2885
0
          goto handle_unusual;
2886
0
        continue;
2887
      // required .gifProtoFuzzer.ImageData img = 3;
2888
0
      case 3:
2889
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
2890
0
          ptr = ctx->ParseMessage(_internal_mutable_img(), ptr);
2891
0
          CHK_(ptr);
2892
0
        } else
2893
0
          goto handle_unusual;
2894
0
        continue;
2895
      // optional .gifProtoFuzzer.GraphicControlExtension gcExt = 4;
2896
0
      case 4:
2897
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
2898
0
          ptr = ctx->ParseMessage(_internal_mutable_gcext(), ptr);
2899
0
          CHK_(ptr);
2900
0
        } else
2901
0
          goto handle_unusual;
2902
0
        continue;
2903
0
      default:
2904
0
        goto handle_unusual;
2905
0
    }  // switch
2906
0
  handle_unusual:
2907
0
    if ((tag == 0) || ((tag & 7) == 4)) {
2908
0
      CHK_(ptr);
2909
0
      ctx->SetLastTag(tag);
2910
0
      goto message_done;
2911
0
    }
2912
0
    ptr = UnknownFieldParse(
2913
0
        tag,
2914
0
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
2915
0
        ptr, ctx);
2916
0
    CHK_(ptr != nullptr);
2917
0
  }  // while
2918
0
message_done:
2919
0
  _impl_._has_bits_.Or(has_bits);
2920
0
  return ptr;
2921
0
failure:
2922
0
  ptr = nullptr;
2923
0
  goto message_done;
2924
0
#undef CHK_
2925
0
}
2926
2927
uint8_t* BasicChunk::_InternalSerialize(
2928
0
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2929
  // @@protoc_insertion_point(serialize_to_array_start:gifProtoFuzzer.BasicChunk)
2930
0
  uint32_t cached_has_bits = 0;
2931
0
  (void) cached_has_bits;
2932
2933
0
  cached_has_bits = _impl_._has_bits_[0];
2934
  // required .gifProtoFuzzer.ImageDescriptor imDescriptor = 1;
2935
0
  if (cached_has_bits & 0x00000001u) {
2936
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2937
0
      InternalWriteMessage(1, _Internal::imdescriptor(this),
2938
0
        _Internal::imdescriptor(this).GetCachedSize(), target, stream);
2939
0
  }
2940
2941
  // required .gifProtoFuzzer.LocalColorTable lct = 2;
2942
0
  if (cached_has_bits & 0x00000002u) {
2943
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2944
0
      InternalWriteMessage(2, _Internal::lct(this),
2945
0
        _Internal::lct(this).GetCachedSize(), target, stream);
2946
0
  }
2947
2948
  // required .gifProtoFuzzer.ImageData img = 3;
2949
0
  if (cached_has_bits & 0x00000004u) {
2950
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2951
0
      InternalWriteMessage(3, _Internal::img(this),
2952
0
        _Internal::img(this).GetCachedSize(), target, stream);
2953
0
  }
2954
2955
  // optional .gifProtoFuzzer.GraphicControlExtension gcExt = 4;
2956
0
  if (cached_has_bits & 0x00000008u) {
2957
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2958
0
      InternalWriteMessage(4, _Internal::gcext(this),
2959
0
        _Internal::gcext(this).GetCachedSize(), target, stream);
2960
0
  }
2961
2962
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2963
0
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2964
0
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
2965
0
  }
2966
  // @@protoc_insertion_point(serialize_to_array_end:gifProtoFuzzer.BasicChunk)
2967
0
  return target;
2968
0
}
2969
2970
0
size_t BasicChunk::RequiredFieldsByteSizeFallback() const {
2971
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:gifProtoFuzzer.BasicChunk)
2972
0
  size_t total_size = 0;
2973
2974
0
  if (_internal_has_imdescriptor()) {
2975
    // required .gifProtoFuzzer.ImageDescriptor imDescriptor = 1;
2976
0
    total_size += 1 +
2977
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2978
0
        *_impl_.imdescriptor_);
2979
0
  }
2980
2981
0
  if (_internal_has_lct()) {
2982
    // required .gifProtoFuzzer.LocalColorTable lct = 2;
2983
0
    total_size += 1 +
2984
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2985
0
        *_impl_.lct_);
2986
0
  }
2987
2988
0
  if (_internal_has_img()) {
2989
    // required .gifProtoFuzzer.ImageData img = 3;
2990
0
    total_size += 1 +
2991
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2992
0
        *_impl_.img_);
2993
0
  }
2994
2995
0
  return total_size;
2996
0
}
2997
0
size_t BasicChunk::ByteSizeLong() const {
2998
// @@protoc_insertion_point(message_byte_size_start:gifProtoFuzzer.BasicChunk)
2999
0
  size_t total_size = 0;
3000
3001
0
  if (((_impl_._has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) {  // All required fields are present.
3002
    // required .gifProtoFuzzer.ImageDescriptor imDescriptor = 1;
3003
0
    total_size += 1 +
3004
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
3005
0
        *_impl_.imdescriptor_);
3006
3007
    // required .gifProtoFuzzer.LocalColorTable lct = 2;
3008
0
    total_size += 1 +
3009
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
3010
0
        *_impl_.lct_);
3011
3012
    // required .gifProtoFuzzer.ImageData img = 3;
3013
0
    total_size += 1 +
3014
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
3015
0
        *_impl_.img_);
3016
3017
0
  } else {
3018
0
    total_size += RequiredFieldsByteSizeFallback();
3019
0
  }
3020
0
  uint32_t cached_has_bits = 0;
3021
  // Prevent compiler warnings about cached_has_bits being unused
3022
0
  (void) cached_has_bits;
3023
3024
  // optional .gifProtoFuzzer.GraphicControlExtension gcExt = 4;
3025
0
  cached_has_bits = _impl_._has_bits_[0];
3026
0
  if (cached_has_bits & 0x00000008u) {
3027
0
    total_size += 1 +
3028
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
3029
0
        *_impl_.gcext_);
3030
0
  }
3031
3032
0
  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
3033
0
}
3034
3035
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BasicChunk::_class_data_ = {
3036
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
3037
    BasicChunk::MergeImpl
3038
};
3039
0
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BasicChunk::GetClassData() const { return &_class_data_; }
3040
3041
3042
0
void BasicChunk::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
3043
0
  auto* const _this = static_cast<BasicChunk*>(&to_msg);
3044
0
  auto& from = static_cast<const BasicChunk&>(from_msg);
3045
  // @@protoc_insertion_point(class_specific_merge_from_start:gifProtoFuzzer.BasicChunk)
3046
0
  GOOGLE_DCHECK_NE(&from, _this);
3047
0
  uint32_t cached_has_bits = 0;
3048
0
  (void) cached_has_bits;
3049
3050
0
  cached_has_bits = from._impl_._has_bits_[0];
3051
0
  if (cached_has_bits & 0x0000000fu) {
3052
0
    if (cached_has_bits & 0x00000001u) {
3053
0
      _this->_internal_mutable_imdescriptor()->::gifProtoFuzzer::ImageDescriptor::MergeFrom(
3054
0
          from._internal_imdescriptor());
3055
0
    }
3056
0
    if (cached_has_bits & 0x00000002u) {
3057
0
      _this->_internal_mutable_lct()->::gifProtoFuzzer::LocalColorTable::MergeFrom(
3058
0
          from._internal_lct());
3059
0
    }
3060
0
    if (cached_has_bits & 0x00000004u) {
3061
0
      _this->_internal_mutable_img()->::gifProtoFuzzer::ImageData::MergeFrom(
3062
0
          from._internal_img());
3063
0
    }
3064
0
    if (cached_has_bits & 0x00000008u) {
3065
0
      _this->_internal_mutable_gcext()->::gifProtoFuzzer::GraphicControlExtension::MergeFrom(
3066
0
          from._internal_gcext());
3067
0
    }
3068
0
  }
3069
0
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
3070
0
}
3071
3072
0
void BasicChunk::CopyFrom(const BasicChunk& from) {
3073
// @@protoc_insertion_point(class_specific_copy_from_start:gifProtoFuzzer.BasicChunk)
3074
0
  if (&from == this) return;
3075
0
  Clear();
3076
0
  MergeFrom(from);
3077
0
}
3078
3079
0
bool BasicChunk::IsInitialized() const {
3080
0
  if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false;
3081
0
  if (_internal_has_imdescriptor()) {
3082
0
    if (!_impl_.imdescriptor_->IsInitialized()) return false;
3083
0
  }
3084
0
  if (_internal_has_lct()) {
3085
0
    if (!_impl_.lct_->IsInitialized()) return false;
3086
0
  }
3087
0
  if (_internal_has_img()) {
3088
0
    if (!_impl_.img_->IsInitialized()) return false;
3089
0
  }
3090
0
  if (_internal_has_gcext()) {
3091
0
    if (!_impl_.gcext_->IsInitialized()) return false;
3092
0
  }
3093
0
  return true;
3094
0
}
3095
3096
0
void BasicChunk::InternalSwap(BasicChunk* other) {
3097
0
  using std::swap;
3098
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3099
0
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
3100
0
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
3101
0
      PROTOBUF_FIELD_OFFSET(BasicChunk, _impl_.gcext_)
3102
0
      + sizeof(BasicChunk::_impl_.gcext_)
3103
0
      - PROTOBUF_FIELD_OFFSET(BasicChunk, _impl_.imdescriptor_)>(
3104
0
          reinterpret_cast<char*>(&_impl_.imdescriptor_),
3105
0
          reinterpret_cast<char*>(&other->_impl_.imdescriptor_));
3106
0
}
3107
3108
19.1k
::PROTOBUF_NAMESPACE_ID::Metadata BasicChunk::GetMetadata() const {
3109
19.1k
  return ::_pbi::AssignDescriptors(
3110
19.1k
      &descriptor_table_gif_5ffuzz_5fproto_2eproto_getter, &descriptor_table_gif_5ffuzz_5fproto_2eproto_once,
3111
19.1k
      file_level_metadata_gif_5ffuzz_5fproto_2eproto[8]);
3112
19.1k
}
3113
3114
// ===================================================================
3115
3116
class ApplicationExtension::_Internal {
3117
 public:
3118
  using HasBits = decltype(std::declval<ApplicationExtension>()._impl_._has_bits_);
3119
0
  static void set_has_appid(HasBits* has_bits) {
3120
0
    (*has_bits)[0] |= 1u;
3121
0
  }
3122
0
  static bool MissingRequiredFields(const HasBits& has_bits) {
3123
0
    return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0;
3124
0
  }
3125
};
3126
3127
ApplicationExtension::ApplicationExtension(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3128
                         bool is_message_owned)
3129
1.56k
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
3130
1.56k
  SharedCtor(arena, is_message_owned);
3131
  // @@protoc_insertion_point(arena_constructor:gifProtoFuzzer.ApplicationExtension)
3132
1.56k
}
3133
ApplicationExtension::ApplicationExtension(const ApplicationExtension& from)
3134
0
  : ::PROTOBUF_NAMESPACE_ID::Message() {
3135
0
  ApplicationExtension* const _this = this; (void)_this;
3136
0
  new (&_impl_) Impl_{
3137
0
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
3138
0
    , /*decltype(_impl_._cached_size_)*/{}
3139
0
    , decltype(_impl_.subs_){from._impl_.subs_}
3140
0
    , decltype(_impl_.appid_){}};
3141
3142
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
3143
0
  _this->_impl_.appid_ = from._impl_.appid_;
3144
  // @@protoc_insertion_point(copy_constructor:gifProtoFuzzer.ApplicationExtension)
3145
0
}
3146
3147
inline void ApplicationExtension::SharedCtor(
3148
1.56k
    ::_pb::Arena* arena, bool is_message_owned) {
3149
1.56k
  (void)arena;
3150
1.56k
  (void)is_message_owned;
3151
1.56k
  new (&_impl_) Impl_{
3152
1.56k
      decltype(_impl_._has_bits_){}
3153
1.56k
    , /*decltype(_impl_._cached_size_)*/{}
3154
1.56k
    , decltype(_impl_.subs_){arena}
3155
1.56k
    , decltype(_impl_.appid_){uint64_t{0u}}
3156
1.56k
  };
3157
1.56k
}
3158
3159
1.56k
ApplicationExtension::~ApplicationExtension() {
3160
  // @@protoc_insertion_point(destructor:gifProtoFuzzer.ApplicationExtension)
3161
1.56k
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
3162
0
  (void)arena;
3163
0
    return;
3164
0
  }
3165
1.56k
  SharedDtor();
3166
1.56k
}
3167
3168
1.56k
inline void ApplicationExtension::SharedDtor() {
3169
1.56k
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
3170
1.56k
  _impl_.subs_.~RepeatedPtrField();
3171
1.56k
}
3172
3173
0
void ApplicationExtension::SetCachedSize(int size) const {
3174
0
  _impl_._cached_size_.Set(size);
3175
0
}
3176
3177
0
void ApplicationExtension::Clear() {
3178
// @@protoc_insertion_point(message_clear_start:gifProtoFuzzer.ApplicationExtension)
3179
0
  uint32_t cached_has_bits = 0;
3180
  // Prevent compiler warnings about cached_has_bits being unused
3181
0
  (void) cached_has_bits;
3182
3183
0
  _impl_.subs_.Clear();
3184
0
  _impl_.appid_ = uint64_t{0u};
3185
0
  _impl_._has_bits_.Clear();
3186
0
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
3187
0
}
3188
3189
0
const char* ApplicationExtension::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
3190
0
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3191
0
  _Internal::HasBits has_bits{};
3192
0
  while (!ctx->Done(&ptr)) {
3193
0
    uint32_t tag;
3194
0
    ptr = ::_pbi::ReadTag(ptr, &tag);
3195
0
    switch (tag >> 3) {
3196
      // required fixed64 appid = 1;
3197
0
      case 1:
3198
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 9)) {
3199
0
          _Internal::set_has_appid(&has_bits);
3200
0
          _impl_.appid_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<uint64_t>(ptr);
3201
0
          ptr += sizeof(uint64_t);
3202
0
        } else
3203
0
          goto handle_unusual;
3204
0
        continue;
3205
      // repeated .gifProtoFuzzer.SubBlock subs = 2;
3206
0
      case 2:
3207
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
3208
0
          ptr -= 1;
3209
0
          do {
3210
0
            ptr += 1;
3211
0
            ptr = ctx->ParseMessage(_internal_add_subs(), ptr);
3212
0
            CHK_(ptr);
3213
0
            if (!ctx->DataAvailable(ptr)) break;
3214
0
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
3215
0
        } else
3216
0
          goto handle_unusual;
3217
0
        continue;
3218
0
      default:
3219
0
        goto handle_unusual;
3220
0
    }  // switch
3221
0
  handle_unusual:
3222
0
    if ((tag == 0) || ((tag & 7) == 4)) {
3223
0
      CHK_(ptr);
3224
0
      ctx->SetLastTag(tag);
3225
0
      goto message_done;
3226
0
    }
3227
0
    ptr = UnknownFieldParse(
3228
0
        tag,
3229
0
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
3230
0
        ptr, ctx);
3231
0
    CHK_(ptr != nullptr);
3232
0
  }  // while
3233
0
message_done:
3234
0
  _impl_._has_bits_.Or(has_bits);
3235
0
  return ptr;
3236
0
failure:
3237
0
  ptr = nullptr;
3238
0
  goto message_done;
3239
0
#undef CHK_
3240
0
}
3241
3242
uint8_t* ApplicationExtension::_InternalSerialize(
3243
0
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
3244
  // @@protoc_insertion_point(serialize_to_array_start:gifProtoFuzzer.ApplicationExtension)
3245
0
  uint32_t cached_has_bits = 0;
3246
0
  (void) cached_has_bits;
3247
3248
0
  cached_has_bits = _impl_._has_bits_[0];
3249
  // required fixed64 appid = 1;
3250
0
  if (cached_has_bits & 0x00000001u) {
3251
0
    target = stream->EnsureSpace(target);
3252
0
    target = ::_pbi::WireFormatLite::WriteFixed64ToArray(1, this->_internal_appid(), target);
3253
0
  }
3254
3255
  // repeated .gifProtoFuzzer.SubBlock subs = 2;
3256
0
  for (unsigned i = 0,
3257
0
      n = static_cast<unsigned>(this->_internal_subs_size()); i < n; i++) {
3258
0
    const auto& repfield = this->_internal_subs(i);
3259
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3260
0
        InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
3261
0
  }
3262
3263
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3264
0
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
3265
0
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
3266
0
  }
3267
  // @@protoc_insertion_point(serialize_to_array_end:gifProtoFuzzer.ApplicationExtension)
3268
0
  return target;
3269
0
}
3270
3271
0
size_t ApplicationExtension::ByteSizeLong() const {
3272
// @@protoc_insertion_point(message_byte_size_start:gifProtoFuzzer.ApplicationExtension)
3273
0
  size_t total_size = 0;
3274
3275
  // required fixed64 appid = 1;
3276
0
  if (_internal_has_appid()) {
3277
0
    total_size += 1 + 8;
3278
0
  }
3279
0
  uint32_t cached_has_bits = 0;
3280
  // Prevent compiler warnings about cached_has_bits being unused
3281
0
  (void) cached_has_bits;
3282
3283
  // repeated .gifProtoFuzzer.SubBlock subs = 2;
3284
0
  total_size += 1UL * this->_internal_subs_size();
3285
0
  for (const auto& msg : this->_impl_.subs_) {
3286
0
    total_size +=
3287
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
3288
0
  }
3289
3290
0
  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
3291
0
}
3292
3293
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ApplicationExtension::_class_data_ = {
3294
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
3295
    ApplicationExtension::MergeImpl
3296
};
3297
0
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ApplicationExtension::GetClassData() const { return &_class_data_; }
3298
3299
3300
0
void ApplicationExtension::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
3301
0
  auto* const _this = static_cast<ApplicationExtension*>(&to_msg);
3302
0
  auto& from = static_cast<const ApplicationExtension&>(from_msg);
3303
  // @@protoc_insertion_point(class_specific_merge_from_start:gifProtoFuzzer.ApplicationExtension)
3304
0
  GOOGLE_DCHECK_NE(&from, _this);
3305
0
  uint32_t cached_has_bits = 0;
3306
0
  (void) cached_has_bits;
3307
3308
0
  _this->_impl_.subs_.MergeFrom(from._impl_.subs_);
3309
0
  if (from._internal_has_appid()) {
3310
0
    _this->_internal_set_appid(from._internal_appid());
3311
0
  }
3312
0
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
3313
0
}
3314
3315
0
void ApplicationExtension::CopyFrom(const ApplicationExtension& from) {
3316
// @@protoc_insertion_point(class_specific_copy_from_start:gifProtoFuzzer.ApplicationExtension)
3317
0
  if (&from == this) return;
3318
0
  Clear();
3319
0
  MergeFrom(from);
3320
0
}
3321
3322
0
bool ApplicationExtension::IsInitialized() const {
3323
0
  if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false;
3324
0
  if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(_impl_.subs_))
3325
0
    return false;
3326
0
  return true;
3327
0
}
3328
3329
0
void ApplicationExtension::InternalSwap(ApplicationExtension* other) {
3330
0
  using std::swap;
3331
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3332
0
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
3333
0
  _impl_.subs_.InternalSwap(&other->_impl_.subs_);
3334
0
  swap(_impl_.appid_, other->_impl_.appid_);
3335
0
}
3336
3337
19.1k
::PROTOBUF_NAMESPACE_ID::Metadata ApplicationExtension::GetMetadata() const {
3338
19.1k
  return ::_pbi::AssignDescriptors(
3339
19.1k
      &descriptor_table_gif_5ffuzz_5fproto_2eproto_getter, &descriptor_table_gif_5ffuzz_5fproto_2eproto_once,
3340
19.1k
      file_level_metadata_gif_5ffuzz_5fproto_2eproto[9]);
3341
19.1k
}
3342
3343
// ===================================================================
3344
3345
class CommentExtension::_Internal {
3346
 public:
3347
};
3348
3349
CommentExtension::CommentExtension(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3350
                         bool is_message_owned)
3351
746
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
3352
746
  SharedCtor(arena, is_message_owned);
3353
  // @@protoc_insertion_point(arena_constructor:gifProtoFuzzer.CommentExtension)
3354
746
}
3355
CommentExtension::CommentExtension(const CommentExtension& from)
3356
0
  : ::PROTOBUF_NAMESPACE_ID::Message() {
3357
0
  CommentExtension* const _this = this; (void)_this;
3358
0
  new (&_impl_) Impl_{
3359
0
      decltype(_impl_.subs_){from._impl_.subs_}
3360
0
    , /*decltype(_impl_._cached_size_)*/{}};
3361
3362
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
3363
  // @@protoc_insertion_point(copy_constructor:gifProtoFuzzer.CommentExtension)
3364
0
}
3365
3366
inline void CommentExtension::SharedCtor(
3367
746
    ::_pb::Arena* arena, bool is_message_owned) {
3368
746
  (void)arena;
3369
746
  (void)is_message_owned;
3370
746
  new (&_impl_) Impl_{
3371
746
      decltype(_impl_.subs_){arena}
3372
746
    , /*decltype(_impl_._cached_size_)*/{}
3373
746
  };
3374
746
}
3375
3376
746
CommentExtension::~CommentExtension() {
3377
  // @@protoc_insertion_point(destructor:gifProtoFuzzer.CommentExtension)
3378
746
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
3379
0
  (void)arena;
3380
0
    return;
3381
0
  }
3382
746
  SharedDtor();
3383
746
}
3384
3385
746
inline void CommentExtension::SharedDtor() {
3386
746
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
3387
746
  _impl_.subs_.~RepeatedPtrField();
3388
746
}
3389
3390
0
void CommentExtension::SetCachedSize(int size) const {
3391
0
  _impl_._cached_size_.Set(size);
3392
0
}
3393
3394
0
void CommentExtension::Clear() {
3395
// @@protoc_insertion_point(message_clear_start:gifProtoFuzzer.CommentExtension)
3396
0
  uint32_t cached_has_bits = 0;
3397
  // Prevent compiler warnings about cached_has_bits being unused
3398
0
  (void) cached_has_bits;
3399
3400
0
  _impl_.subs_.Clear();
3401
0
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
3402
0
}
3403
3404
0
const char* CommentExtension::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
3405
0
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3406
0
  while (!ctx->Done(&ptr)) {
3407
0
    uint32_t tag;
3408
0
    ptr = ::_pbi::ReadTag(ptr, &tag);
3409
0
    switch (tag >> 3) {
3410
      // repeated .gifProtoFuzzer.SubBlock subs = 1;
3411
0
      case 1:
3412
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
3413
0
          ptr -= 1;
3414
0
          do {
3415
0
            ptr += 1;
3416
0
            ptr = ctx->ParseMessage(_internal_add_subs(), ptr);
3417
0
            CHK_(ptr);
3418
0
            if (!ctx->DataAvailable(ptr)) break;
3419
0
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
3420
0
        } else
3421
0
          goto handle_unusual;
3422
0
        continue;
3423
0
      default:
3424
0
        goto handle_unusual;
3425
0
    }  // switch
3426
0
  handle_unusual:
3427
0
    if ((tag == 0) || ((tag & 7) == 4)) {
3428
0
      CHK_(ptr);
3429
0
      ctx->SetLastTag(tag);
3430
0
      goto message_done;
3431
0
    }
3432
0
    ptr = UnknownFieldParse(
3433
0
        tag,
3434
0
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
3435
0
        ptr, ctx);
3436
0
    CHK_(ptr != nullptr);
3437
0
  }  // while
3438
0
message_done:
3439
0
  return ptr;
3440
0
failure:
3441
0
  ptr = nullptr;
3442
0
  goto message_done;
3443
0
#undef CHK_
3444
0
}
3445
3446
uint8_t* CommentExtension::_InternalSerialize(
3447
0
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
3448
  // @@protoc_insertion_point(serialize_to_array_start:gifProtoFuzzer.CommentExtension)
3449
0
  uint32_t cached_has_bits = 0;
3450
0
  (void) cached_has_bits;
3451
3452
  // repeated .gifProtoFuzzer.SubBlock subs = 1;
3453
0
  for (unsigned i = 0,
3454
0
      n = static_cast<unsigned>(this->_internal_subs_size()); i < n; i++) {
3455
0
    const auto& repfield = this->_internal_subs(i);
3456
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3457
0
        InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
3458
0
  }
3459
3460
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3461
0
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
3462
0
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
3463
0
  }
3464
  // @@protoc_insertion_point(serialize_to_array_end:gifProtoFuzzer.CommentExtension)
3465
0
  return target;
3466
0
}
3467
3468
0
size_t CommentExtension::ByteSizeLong() const {
3469
// @@protoc_insertion_point(message_byte_size_start:gifProtoFuzzer.CommentExtension)
3470
0
  size_t total_size = 0;
3471
3472
0
  uint32_t cached_has_bits = 0;
3473
  // Prevent compiler warnings about cached_has_bits being unused
3474
0
  (void) cached_has_bits;
3475
3476
  // repeated .gifProtoFuzzer.SubBlock subs = 1;
3477
0
  total_size += 1UL * this->_internal_subs_size();
3478
0
  for (const auto& msg : this->_impl_.subs_) {
3479
0
    total_size +=
3480
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
3481
0
  }
3482
3483
0
  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
3484
0
}
3485
3486
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CommentExtension::_class_data_ = {
3487
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
3488
    CommentExtension::MergeImpl
3489
};
3490
0
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CommentExtension::GetClassData() const { return &_class_data_; }
3491
3492
3493
0
void CommentExtension::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
3494
0
  auto* const _this = static_cast<CommentExtension*>(&to_msg);
3495
0
  auto& from = static_cast<const CommentExtension&>(from_msg);
3496
  // @@protoc_insertion_point(class_specific_merge_from_start:gifProtoFuzzer.CommentExtension)
3497
0
  GOOGLE_DCHECK_NE(&from, _this);
3498
0
  uint32_t cached_has_bits = 0;
3499
0
  (void) cached_has_bits;
3500
3501
0
  _this->_impl_.subs_.MergeFrom(from._impl_.subs_);
3502
0
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
3503
0
}
3504
3505
0
void CommentExtension::CopyFrom(const CommentExtension& from) {
3506
// @@protoc_insertion_point(class_specific_copy_from_start:gifProtoFuzzer.CommentExtension)
3507
0
  if (&from == this) return;
3508
0
  Clear();
3509
0
  MergeFrom(from);
3510
0
}
3511
3512
0
bool CommentExtension::IsInitialized() const {
3513
0
  if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(_impl_.subs_))
3514
0
    return false;
3515
0
  return true;
3516
0
}
3517
3518
0
void CommentExtension::InternalSwap(CommentExtension* other) {
3519
0
  using std::swap;
3520
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3521
0
  _impl_.subs_.InternalSwap(&other->_impl_.subs_);
3522
0
}
3523
3524
138k
::PROTOBUF_NAMESPACE_ID::Metadata CommentExtension::GetMetadata() const {
3525
138k
  return ::_pbi::AssignDescriptors(
3526
138k
      &descriptor_table_gif_5ffuzz_5fproto_2eproto_getter, &descriptor_table_gif_5ffuzz_5fproto_2eproto_once,
3527
138k
      file_level_metadata_gif_5ffuzz_5fproto_2eproto[10]);
3528
138k
}
3529
3530
// ===================================================================
3531
3532
class Header::_Internal {
3533
 public:
3534
  using HasBits = decltype(std::declval<Header>()._impl_._has_bits_);
3535
0
  static void set_has_ver(HasBits* has_bits) {
3536
0
    (*has_bits)[0] |= 1u;
3537
0
  }
3538
0
  static bool MissingRequiredFields(const HasBits& has_bits) {
3539
0
    return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0;
3540
0
  }
3541
};
3542
3543
Header::Header(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3544
                         bool is_message_owned)
3545
1.86k
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
3546
1.86k
  SharedCtor(arena, is_message_owned);
3547
  // @@protoc_insertion_point(arena_constructor:gifProtoFuzzer.Header)
3548
1.86k
}
3549
Header::Header(const Header& from)
3550
0
  : ::PROTOBUF_NAMESPACE_ID::Message() {
3551
0
  Header* const _this = this; (void)_this;
3552
0
  new (&_impl_) Impl_{
3553
0
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
3554
0
    , /*decltype(_impl_._cached_size_)*/{}
3555
0
    , decltype(_impl_.ver_){}};
3556
3557
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
3558
0
  _this->_impl_.ver_ = from._impl_.ver_;
3559
  // @@protoc_insertion_point(copy_constructor:gifProtoFuzzer.Header)
3560
0
}
3561
3562
inline void Header::SharedCtor(
3563
1.86k
    ::_pb::Arena* arena, bool is_message_owned) {
3564
1.86k
  (void)arena;
3565
1.86k
  (void)is_message_owned;
3566
1.86k
  new (&_impl_) Impl_{
3567
1.86k
      decltype(_impl_._has_bits_){}
3568
1.86k
    , /*decltype(_impl_._cached_size_)*/{}
3569
1.86k
    , decltype(_impl_.ver_){1}
3570
1.86k
  };
3571
1.86k
}
3572
3573
1.86k
Header::~Header() {
3574
  // @@protoc_insertion_point(destructor:gifProtoFuzzer.Header)
3575
1.86k
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
3576
0
  (void)arena;
3577
0
    return;
3578
0
  }
3579
1.86k
  SharedDtor();
3580
1.86k
}
3581
3582
1.86k
inline void Header::SharedDtor() {
3583
1.86k
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
3584
1.86k
}
3585
3586
0
void Header::SetCachedSize(int size) const {
3587
0
  _impl_._cached_size_.Set(size);
3588
0
}
3589
3590
1.30k
void Header::Clear() {
3591
// @@protoc_insertion_point(message_clear_start:gifProtoFuzzer.Header)
3592
1.30k
  uint32_t cached_has_bits = 0;
3593
  // Prevent compiler warnings about cached_has_bits being unused
3594
1.30k
  (void) cached_has_bits;
3595
3596
1.30k
  _impl_.ver_ = 1;
3597
1.30k
  _impl_._has_bits_.Clear();
3598
1.30k
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
3599
1.30k
}
3600
3601
0
const char* Header::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
3602
0
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3603
0
  _Internal::HasBits has_bits{};
3604
0
  while (!ctx->Done(&ptr)) {
3605
0
    uint32_t tag;
3606
0
    ptr = ::_pbi::ReadTag(ptr, &tag);
3607
0
    switch (tag >> 3) {
3608
      // required .gifProtoFuzzer.Header.Version ver = 1;
3609
0
      case 1:
3610
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
3611
0
          uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3612
0
          CHK_(ptr);
3613
0
          if (PROTOBUF_PREDICT_TRUE(::gifProtoFuzzer::Header_Version_IsValid(val))) {
3614
0
            _internal_set_ver(static_cast<::gifProtoFuzzer::Header_Version>(val));
3615
0
          } else {
3616
0
            ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields());
3617
0
          }
3618
0
        } else
3619
0
          goto handle_unusual;
3620
0
        continue;
3621
0
      default:
3622
0
        goto handle_unusual;
3623
0
    }  // switch
3624
0
  handle_unusual:
3625
0
    if ((tag == 0) || ((tag & 7) == 4)) {
3626
0
      CHK_(ptr);
3627
0
      ctx->SetLastTag(tag);
3628
0
      goto message_done;
3629
0
    }
3630
0
    ptr = UnknownFieldParse(
3631
0
        tag,
3632
0
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
3633
0
        ptr, ctx);
3634
0
    CHK_(ptr != nullptr);
3635
0
  }  // while
3636
0
message_done:
3637
0
  _impl_._has_bits_.Or(has_bits);
3638
0
  return ptr;
3639
0
failure:
3640
0
  ptr = nullptr;
3641
0
  goto message_done;
3642
0
#undef CHK_
3643
0
}
3644
3645
uint8_t* Header::_InternalSerialize(
3646
0
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
3647
  // @@protoc_insertion_point(serialize_to_array_start:gifProtoFuzzer.Header)
3648
0
  uint32_t cached_has_bits = 0;
3649
0
  (void) cached_has_bits;
3650
3651
0
  cached_has_bits = _impl_._has_bits_[0];
3652
  // required .gifProtoFuzzer.Header.Version ver = 1;
3653
0
  if (cached_has_bits & 0x00000001u) {
3654
0
    target = stream->EnsureSpace(target);
3655
0
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
3656
0
      1, this->_internal_ver(), target);
3657
0
  }
3658
3659
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3660
0
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
3661
0
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
3662
0
  }
3663
  // @@protoc_insertion_point(serialize_to_array_end:gifProtoFuzzer.Header)
3664
0
  return target;
3665
0
}
3666
3667
0
size_t Header::ByteSizeLong() const {
3668
// @@protoc_insertion_point(message_byte_size_start:gifProtoFuzzer.Header)
3669
0
  size_t total_size = 0;
3670
3671
  // required .gifProtoFuzzer.Header.Version ver = 1;
3672
0
  if (_internal_has_ver()) {
3673
0
    total_size += 1 +
3674
0
      ::_pbi::WireFormatLite::EnumSize(this->_internal_ver());
3675
0
  }
3676
0
  uint32_t cached_has_bits = 0;
3677
  // Prevent compiler warnings about cached_has_bits being unused
3678
0
  (void) cached_has_bits;
3679
3680
0
  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
3681
0
}
3682
3683
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Header::_class_data_ = {
3684
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
3685
    Header::MergeImpl
3686
};
3687
1.92k
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Header::GetClassData() const { return &_class_data_; }
3688
3689
3690
643
void Header::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
3691
643
  auto* const _this = static_cast<Header*>(&to_msg);
3692
643
  auto& from = static_cast<const Header&>(from_msg);
3693
  // @@protoc_insertion_point(class_specific_merge_from_start:gifProtoFuzzer.Header)
3694
643
  GOOGLE_DCHECK_NE(&from, _this);
3695
643
  uint32_t cached_has_bits = 0;
3696
643
  (void) cached_has_bits;
3697
3698
643
  if (from._internal_has_ver()) {
3699
0
    _this->_internal_set_ver(from._internal_ver());
3700
0
  }
3701
643
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
3702
643
}
3703
3704
0
void Header::CopyFrom(const Header& from) {
3705
// @@protoc_insertion_point(class_specific_copy_from_start:gifProtoFuzzer.Header)
3706
0
  if (&from == this) return;
3707
0
  Clear();
3708
0
  MergeFrom(from);
3709
0
}
3710
3711
0
bool Header::IsInitialized() const {
3712
0
  if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false;
3713
0
  return true;
3714
0
}
3715
3716
0
void Header::InternalSwap(Header* other) {
3717
0
  using std::swap;
3718
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3719
0
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
3720
0
  swap(_impl_.ver_, other->_impl_.ver_);
3721
0
}
3722
3723
8.57k
::PROTOBUF_NAMESPACE_ID::Metadata Header::GetMetadata() const {
3724
8.57k
  return ::_pbi::AssignDescriptors(
3725
8.57k
      &descriptor_table_gif_5ffuzz_5fproto_2eproto_getter, &descriptor_table_gif_5ffuzz_5fproto_2eproto_once,
3726
8.57k
      file_level_metadata_gif_5ffuzz_5fproto_2eproto[11]);
3727
8.57k
}
3728
3729
// ===================================================================
3730
3731
class Trailer::_Internal {
3732
 public:
3733
};
3734
3735
Trailer::Trailer(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3736
                         bool is_message_owned)
3737
1.80k
  : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
3738
  // @@protoc_insertion_point(arena_constructor:gifProtoFuzzer.Trailer)
3739
1.80k
}
3740
Trailer::Trailer(const Trailer& from)
3741
0
  : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
3742
0
  Trailer* const _this = this; (void)_this;
3743
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
3744
  // @@protoc_insertion_point(copy_constructor:gifProtoFuzzer.Trailer)
3745
0
}
3746
3747
3748
3749
3750
3751
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Trailer::_class_data_ = {
3752
    ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
3753
    ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
3754
};
3755
1.18k
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Trailer::GetClassData() const { return &_class_data_; }
3756
3757
3758
3759
3760
3761
3762
3763
6.38k
::PROTOBUF_NAMESPACE_ID::Metadata Trailer::GetMetadata() const {
3764
6.38k
  return ::_pbi::AssignDescriptors(
3765
6.38k
      &descriptor_table_gif_5ffuzz_5fproto_2eproto_getter, &descriptor_table_gif_5ffuzz_5fproto_2eproto_once,
3766
6.38k
      file_level_metadata_gif_5ffuzz_5fproto_2eproto[12]);
3767
6.38k
}
3768
3769
// ===================================================================
3770
3771
class ImageChunk::_Internal {
3772
 public:
3773
  static const ::gifProtoFuzzer::BasicChunk& basic(const ImageChunk* msg);
3774
  static const ::gifProtoFuzzer::PlainTextExtension& plaintext(const ImageChunk* msg);
3775
  static const ::gifProtoFuzzer::ApplicationExtension& appext(const ImageChunk* msg);
3776
  static const ::gifProtoFuzzer::CommentExtension& comext(const ImageChunk* msg);
3777
};
3778
3779
const ::gifProtoFuzzer::BasicChunk&
3780
0
ImageChunk::_Internal::basic(const ImageChunk* msg) {
3781
0
  return *msg->_impl_.chunk_oneof_.basic_;
3782
0
}
3783
const ::gifProtoFuzzer::PlainTextExtension&
3784
0
ImageChunk::_Internal::plaintext(const ImageChunk* msg) {
3785
0
  return *msg->_impl_.chunk_oneof_.plaintext_;
3786
0
}
3787
const ::gifProtoFuzzer::ApplicationExtension&
3788
0
ImageChunk::_Internal::appext(const ImageChunk* msg) {
3789
0
  return *msg->_impl_.chunk_oneof_.appext_;
3790
0
}
3791
const ::gifProtoFuzzer::CommentExtension&
3792
0
ImageChunk::_Internal::comext(const ImageChunk* msg) {
3793
0
  return *msg->_impl_.chunk_oneof_.comext_;
3794
0
}
3795
0
void ImageChunk::set_allocated_basic(::gifProtoFuzzer::BasicChunk* basic) {
3796
0
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
3797
0
  clear_chunk_oneof();
3798
0
  if (basic) {
3799
0
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
3800
0
      ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(basic);
3801
0
    if (message_arena != submessage_arena) {
3802
0
      basic = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
3803
0
          message_arena, basic, submessage_arena);
3804
0
    }
3805
0
    set_has_basic();
3806
0
    _impl_.chunk_oneof_.basic_ = basic;
3807
0
  }
3808
  // @@protoc_insertion_point(field_set_allocated:gifProtoFuzzer.ImageChunk.basic)
3809
0
}
3810
0
void ImageChunk::set_allocated_plaintext(::gifProtoFuzzer::PlainTextExtension* plaintext) {
3811
0
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
3812
0
  clear_chunk_oneof();
3813
0
  if (plaintext) {
3814
0
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
3815
0
      ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(plaintext);
3816
0
    if (message_arena != submessage_arena) {
3817
0
      plaintext = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
3818
0
          message_arena, plaintext, submessage_arena);
3819
0
    }
3820
0
    set_has_plaintext();
3821
0
    _impl_.chunk_oneof_.plaintext_ = plaintext;
3822
0
  }
3823
  // @@protoc_insertion_point(field_set_allocated:gifProtoFuzzer.ImageChunk.plaintext)
3824
0
}
3825
0
void ImageChunk::set_allocated_appext(::gifProtoFuzzer::ApplicationExtension* appext) {
3826
0
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
3827
0
  clear_chunk_oneof();
3828
0
  if (appext) {
3829
0
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
3830
0
      ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(appext);
3831
0
    if (message_arena != submessage_arena) {
3832
0
      appext = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
3833
0
          message_arena, appext, submessage_arena);
3834
0
    }
3835
0
    set_has_appext();
3836
0
    _impl_.chunk_oneof_.appext_ = appext;
3837
0
  }
3838
  // @@protoc_insertion_point(field_set_allocated:gifProtoFuzzer.ImageChunk.appExt)
3839
0
}
3840
0
void ImageChunk::set_allocated_comext(::gifProtoFuzzer::CommentExtension* comext) {
3841
0
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
3842
0
  clear_chunk_oneof();
3843
0
  if (comext) {
3844
0
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
3845
0
      ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(comext);
3846
0
    if (message_arena != submessage_arena) {
3847
0
      comext = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
3848
0
          message_arena, comext, submessage_arena);
3849
0
    }
3850
0
    set_has_comext();
3851
0
    _impl_.chunk_oneof_.comext_ = comext;
3852
0
  }
3853
  // @@protoc_insertion_point(field_set_allocated:gifProtoFuzzer.ImageChunk.comExt)
3854
0
}
3855
ImageChunk::ImageChunk(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3856
                         bool is_message_owned)
3857
71.4k
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
3858
71.4k
  SharedCtor(arena, is_message_owned);
3859
  // @@protoc_insertion_point(arena_constructor:gifProtoFuzzer.ImageChunk)
3860
71.4k
}
3861
ImageChunk::ImageChunk(const ImageChunk& from)
3862
0
  : ::PROTOBUF_NAMESPACE_ID::Message() {
3863
0
  ImageChunk* const _this = this; (void)_this;
3864
0
  new (&_impl_) Impl_{
3865
0
      decltype(_impl_.chunk_oneof_){}
3866
0
    , /*decltype(_impl_._cached_size_)*/{}
3867
0
    , /*decltype(_impl_._oneof_case_)*/{}};
3868
3869
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
3870
0
  clear_has_chunk_oneof();
3871
0
  switch (from.chunk_oneof_case()) {
3872
0
    case kBasic: {
3873
0
      _this->_internal_mutable_basic()->::gifProtoFuzzer::BasicChunk::MergeFrom(
3874
0
          from._internal_basic());
3875
0
      break;
3876
0
    }
3877
0
    case kPlaintext: {
3878
0
      _this->_internal_mutable_plaintext()->::gifProtoFuzzer::PlainTextExtension::MergeFrom(
3879
0
          from._internal_plaintext());
3880
0
      break;
3881
0
    }
3882
0
    case kAppExt: {
3883
0
      _this->_internal_mutable_appext()->::gifProtoFuzzer::ApplicationExtension::MergeFrom(
3884
0
          from._internal_appext());
3885
0
      break;
3886
0
    }
3887
0
    case kComExt: {
3888
0
      _this->_internal_mutable_comext()->::gifProtoFuzzer::CommentExtension::MergeFrom(
3889
0
          from._internal_comext());
3890
0
      break;
3891
0
    }
3892
0
    case CHUNK_ONEOF_NOT_SET: {
3893
0
      break;
3894
0
    }
3895
0
  }
3896
  // @@protoc_insertion_point(copy_constructor:gifProtoFuzzer.ImageChunk)
3897
0
}
3898
3899
inline void ImageChunk::SharedCtor(
3900
71.4k
    ::_pb::Arena* arena, bool is_message_owned) {
3901
71.4k
  (void)arena;
3902
71.4k
  (void)is_message_owned;
3903
71.4k
  new (&_impl_) Impl_{
3904
71.4k
      decltype(_impl_.chunk_oneof_){}
3905
71.4k
    , /*decltype(_impl_._cached_size_)*/{}
3906
71.4k
    , /*decltype(_impl_._oneof_case_)*/{}
3907
71.4k
  };
3908
71.4k
  clear_has_chunk_oneof();
3909
71.4k
}
3910
3911
71.4k
ImageChunk::~ImageChunk() {
3912
  // @@protoc_insertion_point(destructor:gifProtoFuzzer.ImageChunk)
3913
71.4k
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
3914
0
  (void)arena;
3915
0
    return;
3916
0
  }
3917
71.4k
  SharedDtor();
3918
71.4k
}
3919
3920
71.4k
inline void ImageChunk::SharedDtor() {
3921
71.4k
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
3922
71.4k
  if (has_chunk_oneof()) {
3923
4.11k
    clear_chunk_oneof();
3924
4.11k
  }
3925
71.4k
}
3926
3927
0
void ImageChunk::SetCachedSize(int size) const {
3928
0
  _impl_._cached_size_.Set(size);
3929
0
}
3930
3931
71.0k
void ImageChunk::clear_chunk_oneof() {
3932
// @@protoc_insertion_point(one_of_clear_start:gifProtoFuzzer.ImageChunk)
3933
71.0k
  switch (chunk_oneof_case()) {
3934
1.76k
    case kBasic: {
3935
1.76k
      if (GetArenaForAllocation() == nullptr) {
3936
1.76k
        delete _impl_.chunk_oneof_.basic_;
3937
1.76k
      }
3938
1.76k
      break;
3939
0
    }
3940
1.24k
    case kPlaintext: {
3941
1.24k
      if (GetArenaForAllocation() == nullptr) {
3942
1.24k
        delete _impl_.chunk_oneof_.plaintext_;
3943
1.24k
      }
3944
1.24k
      break;
3945
0
    }
3946
1.56k
    case kAppExt: {
3947
1.56k
      if (GetArenaForAllocation() == nullptr) {
3948
1.56k
        delete _impl_.chunk_oneof_.appext_;
3949
1.56k
      }
3950
1.56k
      break;
3951
0
    }
3952
746
    case kComExt: {
3953
746
      if (GetArenaForAllocation() == nullptr) {
3954
746
        delete _impl_.chunk_oneof_.comext_;
3955
746
      }
3956
746
      break;
3957
0
    }
3958
65.6k
    case CHUNK_ONEOF_NOT_SET: {
3959
65.6k
      break;
3960
0
    }
3961
71.0k
  }
3962
71.0k
  _impl_._oneof_case_[0] = CHUNK_ONEOF_NOT_SET;
3963
71.0k
}
3964
3965
3966
66.8k
void ImageChunk::Clear() {
3967
// @@protoc_insertion_point(message_clear_start:gifProtoFuzzer.ImageChunk)
3968
66.8k
  uint32_t cached_has_bits = 0;
3969
  // Prevent compiler warnings about cached_has_bits being unused
3970
66.8k
  (void) cached_has_bits;
3971
3972
66.8k
  clear_chunk_oneof();
3973
66.8k
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
3974
66.8k
}
3975
3976
0
const char* ImageChunk::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
3977
0
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3978
0
  while (!ctx->Done(&ptr)) {
3979
0
    uint32_t tag;
3980
0
    ptr = ::_pbi::ReadTag(ptr, &tag);
3981
0
    switch (tag >> 3) {
3982
      // .gifProtoFuzzer.BasicChunk basic = 1;
3983
0
      case 1:
3984
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
3985
0
          ptr = ctx->ParseMessage(_internal_mutable_basic(), ptr);
3986
0
          CHK_(ptr);
3987
0
        } else
3988
0
          goto handle_unusual;
3989
0
        continue;
3990
      // .gifProtoFuzzer.PlainTextExtension plaintext = 2;
3991
0
      case 2:
3992
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
3993
0
          ptr = ctx->ParseMessage(_internal_mutable_plaintext(), ptr);
3994
0
          CHK_(ptr);
3995
0
        } else
3996
0
          goto handle_unusual;
3997
0
        continue;
3998
      // .gifProtoFuzzer.ApplicationExtension appExt = 3;
3999
0
      case 3:
4000
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
4001
0
          ptr = ctx->ParseMessage(_internal_mutable_appext(), ptr);
4002
0
          CHK_(ptr);
4003
0
        } else
4004
0
          goto handle_unusual;
4005
0
        continue;
4006
      // .gifProtoFuzzer.CommentExtension comExt = 4;
4007
0
      case 4:
4008
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
4009
0
          ptr = ctx->ParseMessage(_internal_mutable_comext(), ptr);
4010
0
          CHK_(ptr);
4011
0
        } else
4012
0
          goto handle_unusual;
4013
0
        continue;
4014
0
      default:
4015
0
        goto handle_unusual;
4016
0
    }  // switch
4017
0
  handle_unusual:
4018
0
    if ((tag == 0) || ((tag & 7) == 4)) {
4019
0
      CHK_(ptr);
4020
0
      ctx->SetLastTag(tag);
4021
0
      goto message_done;
4022
0
    }
4023
0
    ptr = UnknownFieldParse(
4024
0
        tag,
4025
0
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
4026
0
        ptr, ctx);
4027
0
    CHK_(ptr != nullptr);
4028
0
  }  // while
4029
0
message_done:
4030
0
  return ptr;
4031
0
failure:
4032
0
  ptr = nullptr;
4033
0
  goto message_done;
4034
0
#undef CHK_
4035
0
}
4036
4037
uint8_t* ImageChunk::_InternalSerialize(
4038
0
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
4039
  // @@protoc_insertion_point(serialize_to_array_start:gifProtoFuzzer.ImageChunk)
4040
0
  uint32_t cached_has_bits = 0;
4041
0
  (void) cached_has_bits;
4042
4043
0
  switch (chunk_oneof_case()) {
4044
0
    case kBasic: {
4045
0
      target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4046
0
        InternalWriteMessage(1, _Internal::basic(this),
4047
0
          _Internal::basic(this).GetCachedSize(), target, stream);
4048
0
      break;
4049
0
    }
4050
0
    case kPlaintext: {
4051
0
      target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4052
0
        InternalWriteMessage(2, _Internal::plaintext(this),
4053
0
          _Internal::plaintext(this).GetCachedSize(), target, stream);
4054
0
      break;
4055
0
    }
4056
0
    case kAppExt: {
4057
0
      target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4058
0
        InternalWriteMessage(3, _Internal::appext(this),
4059
0
          _Internal::appext(this).GetCachedSize(), target, stream);
4060
0
      break;
4061
0
    }
4062
0
    case kComExt: {
4063
0
      target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4064
0
        InternalWriteMessage(4, _Internal::comext(this),
4065
0
          _Internal::comext(this).GetCachedSize(), target, stream);
4066
0
      break;
4067
0
    }
4068
0
    default: ;
4069
0
  }
4070
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4071
0
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
4072
0
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
4073
0
  }
4074
  // @@protoc_insertion_point(serialize_to_array_end:gifProtoFuzzer.ImageChunk)
4075
0
  return target;
4076
0
}
4077
4078
0
size_t ImageChunk::ByteSizeLong() const {
4079
// @@protoc_insertion_point(message_byte_size_start:gifProtoFuzzer.ImageChunk)
4080
0
  size_t total_size = 0;
4081
4082
0
  uint32_t cached_has_bits = 0;
4083
  // Prevent compiler warnings about cached_has_bits being unused
4084
0
  (void) cached_has_bits;
4085
4086
0
  switch (chunk_oneof_case()) {
4087
    // .gifProtoFuzzer.BasicChunk basic = 1;
4088
0
    case kBasic: {
4089
0
      total_size += 1 +
4090
0
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4091
0
          *_impl_.chunk_oneof_.basic_);
4092
0
      break;
4093
0
    }
4094
    // .gifProtoFuzzer.PlainTextExtension plaintext = 2;
4095
0
    case kPlaintext: {
4096
0
      total_size += 1 +
4097
0
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4098
0
          *_impl_.chunk_oneof_.plaintext_);
4099
0
      break;
4100
0
    }
4101
    // .gifProtoFuzzer.ApplicationExtension appExt = 3;
4102
0
    case kAppExt: {
4103
0
      total_size += 1 +
4104
0
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4105
0
          *_impl_.chunk_oneof_.appext_);
4106
0
      break;
4107
0
    }
4108
    // .gifProtoFuzzer.CommentExtension comExt = 4;
4109
0
    case kComExt: {
4110
0
      total_size += 1 +
4111
0
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4112
0
          *_impl_.chunk_oneof_.comext_);
4113
0
      break;
4114
0
    }
4115
0
    case CHUNK_ONEOF_NOT_SET: {
4116
0
      break;
4117
0
    }
4118
0
  }
4119
0
  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
4120
0
}
4121
4122
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ImageChunk::_class_data_ = {
4123
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
4124
    ImageChunk::MergeImpl
4125
};
4126
0
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ImageChunk::GetClassData() const { return &_class_data_; }
4127
4128
4129
0
void ImageChunk::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
4130
0
  auto* const _this = static_cast<ImageChunk*>(&to_msg);
4131
0
  auto& from = static_cast<const ImageChunk&>(from_msg);
4132
  // @@protoc_insertion_point(class_specific_merge_from_start:gifProtoFuzzer.ImageChunk)
4133
0
  GOOGLE_DCHECK_NE(&from, _this);
4134
0
  uint32_t cached_has_bits = 0;
4135
0
  (void) cached_has_bits;
4136
4137
0
  switch (from.chunk_oneof_case()) {
4138
0
    case kBasic: {
4139
0
      _this->_internal_mutable_basic()->::gifProtoFuzzer::BasicChunk::MergeFrom(
4140
0
          from._internal_basic());
4141
0
      break;
4142
0
    }
4143
0
    case kPlaintext: {
4144
0
      _this->_internal_mutable_plaintext()->::gifProtoFuzzer::PlainTextExtension::MergeFrom(
4145
0
          from._internal_plaintext());
4146
0
      break;
4147
0
    }
4148
0
    case kAppExt: {
4149
0
      _this->_internal_mutable_appext()->::gifProtoFuzzer::ApplicationExtension::MergeFrom(
4150
0
          from._internal_appext());
4151
0
      break;
4152
0
    }
4153
0
    case kComExt: {
4154
0
      _this->_internal_mutable_comext()->::gifProtoFuzzer::CommentExtension::MergeFrom(
4155
0
          from._internal_comext());
4156
0
      break;
4157
0
    }
4158
0
    case CHUNK_ONEOF_NOT_SET: {
4159
0
      break;
4160
0
    }
4161
0
  }
4162
0
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
4163
0
}
4164
4165
0
void ImageChunk::CopyFrom(const ImageChunk& from) {
4166
// @@protoc_insertion_point(class_specific_copy_from_start:gifProtoFuzzer.ImageChunk)
4167
0
  if (&from == this) return;
4168
0
  Clear();
4169
0
  MergeFrom(from);
4170
0
}
4171
4172
0
bool ImageChunk::IsInitialized() const {
4173
0
  switch (chunk_oneof_case()) {
4174
0
    case kBasic: {
4175
0
      if (_internal_has_basic()) {
4176
0
        if (!_impl_.chunk_oneof_.basic_->IsInitialized()) return false;
4177
0
      }
4178
0
      break;
4179
0
    }
4180
0
    case kPlaintext: {
4181
0
      if (_internal_has_plaintext()) {
4182
0
        if (!_impl_.chunk_oneof_.plaintext_->IsInitialized()) return false;
4183
0
      }
4184
0
      break;
4185
0
    }
4186
0
    case kAppExt: {
4187
0
      if (_internal_has_appext()) {
4188
0
        if (!_impl_.chunk_oneof_.appext_->IsInitialized()) return false;
4189
0
      }
4190
0
      break;
4191
0
    }
4192
0
    case kComExt: {
4193
0
      if (_internal_has_comext()) {
4194
0
        if (!_impl_.chunk_oneof_.comext_->IsInitialized()) return false;
4195
0
      }
4196
0
      break;
4197
0
    }
4198
0
    case CHUNK_ONEOF_NOT_SET: {
4199
0
      break;
4200
0
    }
4201
0
  }
4202
0
  return true;
4203
0
}
4204
4205
0
void ImageChunk::InternalSwap(ImageChunk* other) {
4206
0
  using std::swap;
4207
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
4208
0
  swap(_impl_.chunk_oneof_, other->_impl_.chunk_oneof_);
4209
0
  swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
4210
0
}
4211
4212
44.4k
::PROTOBUF_NAMESPACE_ID::Metadata ImageChunk::GetMetadata() const {
4213
44.4k
  return ::_pbi::AssignDescriptors(
4214
44.4k
      &descriptor_table_gif_5ffuzz_5fproto_2eproto_getter, &descriptor_table_gif_5ffuzz_5fproto_2eproto_once,
4215
44.4k
      file_level_metadata_gif_5ffuzz_5fproto_2eproto[13]);
4216
44.4k
}
4217
4218
// ===================================================================
4219
4220
class GifProto::_Internal {
4221
 public:
4222
  using HasBits = decltype(std::declval<GifProto>()._impl_._has_bits_);
4223
  static const ::gifProtoFuzzer::Header& header(const GifProto* msg);
4224
0
  static void set_has_header(HasBits* has_bits) {
4225
0
    (*has_bits)[0] |= 1u;
4226
0
  }
4227
  static const ::gifProtoFuzzer::LogicalScreenDescriptor& lsd(const GifProto* msg);
4228
0
  static void set_has_lsd(HasBits* has_bits) {
4229
0
    (*has_bits)[0] |= 2u;
4230
0
  }
4231
  static const ::gifProtoFuzzer::GlobalColorTable& gct(const GifProto* msg);
4232
0
  static void set_has_gct(HasBits* has_bits) {
4233
0
    (*has_bits)[0] |= 4u;
4234
0
  }
4235
  static const ::gifProtoFuzzer::Trailer& trailer(const GifProto* msg);
4236
0
  static void set_has_trailer(HasBits* has_bits) {
4237
0
    (*has_bits)[0] |= 8u;
4238
0
  }
4239
0
  static bool MissingRequiredFields(const HasBits& has_bits) {
4240
0
    return ((has_bits[0] & 0x0000000f) ^ 0x0000000f) != 0;
4241
0
  }
4242
};
4243
4244
const ::gifProtoFuzzer::Header&
4245
0
GifProto::_Internal::header(const GifProto* msg) {
4246
0
  return *msg->_impl_.header_;
4247
0
}
4248
const ::gifProtoFuzzer::LogicalScreenDescriptor&
4249
0
GifProto::_Internal::lsd(const GifProto* msg) {
4250
0
  return *msg->_impl_.lsd_;
4251
0
}
4252
const ::gifProtoFuzzer::GlobalColorTable&
4253
0
GifProto::_Internal::gct(const GifProto* msg) {
4254
0
  return *msg->_impl_.gct_;
4255
0
}
4256
const ::gifProtoFuzzer::Trailer&
4257
0
GifProto::_Internal::trailer(const GifProto* msg) {
4258
0
  return *msg->_impl_.trailer_;
4259
0
}
4260
GifProto::GifProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
4261
                         bool is_message_owned)
4262
1.37k
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
4263
1.37k
  SharedCtor(arena, is_message_owned);
4264
  // @@protoc_insertion_point(arena_constructor:gifProtoFuzzer.GifProto)
4265
1.37k
}
4266
GifProto::GifProto(const GifProto& from)
4267
0
  : ::PROTOBUF_NAMESPACE_ID::Message() {
4268
0
  GifProto* const _this = this; (void)_this;
4269
0
  new (&_impl_) Impl_{
4270
0
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
4271
0
    , /*decltype(_impl_._cached_size_)*/{}
4272
0
    , decltype(_impl_.chunks_){from._impl_.chunks_}
4273
0
    , decltype(_impl_.header_){nullptr}
4274
0
    , decltype(_impl_.lsd_){nullptr}
4275
0
    , decltype(_impl_.gct_){nullptr}
4276
0
    , decltype(_impl_.trailer_){nullptr}};
4277
4278
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
4279
0
  if (from._internal_has_header()) {
4280
0
    _this->_impl_.header_ = new ::gifProtoFuzzer::Header(*from._impl_.header_);
4281
0
  }
4282
0
  if (from._internal_has_lsd()) {
4283
0
    _this->_impl_.lsd_ = new ::gifProtoFuzzer::LogicalScreenDescriptor(*from._impl_.lsd_);
4284
0
  }
4285
0
  if (from._internal_has_gct()) {
4286
0
    _this->_impl_.gct_ = new ::gifProtoFuzzer::GlobalColorTable(*from._impl_.gct_);
4287
0
  }
4288
0
  if (from._internal_has_trailer()) {
4289
0
    _this->_impl_.trailer_ = new ::gifProtoFuzzer::Trailer(*from._impl_.trailer_);
4290
0
  }
4291
  // @@protoc_insertion_point(copy_constructor:gifProtoFuzzer.GifProto)
4292
0
}
4293
4294
inline void GifProto::SharedCtor(
4295
1.37k
    ::_pb::Arena* arena, bool is_message_owned) {
4296
1.37k
  (void)arena;
4297
1.37k
  (void)is_message_owned;
4298
1.37k
  new (&_impl_) Impl_{
4299
1.37k
      decltype(_impl_._has_bits_){}
4300
1.37k
    , /*decltype(_impl_._cached_size_)*/{}
4301
1.37k
    , decltype(_impl_.chunks_){arena}
4302
1.37k
    , decltype(_impl_.header_){nullptr}
4303
1.37k
    , decltype(_impl_.lsd_){nullptr}
4304
1.37k
    , decltype(_impl_.gct_){nullptr}
4305
1.37k
    , decltype(_impl_.trailer_){nullptr}
4306
1.37k
  };
4307
1.37k
}
4308
4309
1.37k
GifProto::~GifProto() {
4310
  // @@protoc_insertion_point(destructor:gifProtoFuzzer.GifProto)
4311
1.37k
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
4312
0
  (void)arena;
4313
0
    return;
4314
0
  }
4315
1.37k
  SharedDtor();
4316
1.37k
}
4317
4318
1.37k
inline void GifProto::SharedDtor() {
4319
1.37k
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
4320
1.37k
  _impl_.chunks_.~RepeatedPtrField();
4321
1.37k
  if (this != internal_default_instance()) delete _impl_.header_;
4322
1.37k
  if (this != internal_default_instance()) delete _impl_.lsd_;
4323
1.37k
  if (this != internal_default_instance()) delete _impl_.gct_;
4324
1.37k
  if (this != internal_default_instance()) delete _impl_.trailer_;
4325
1.37k
}
4326
4327
0
void GifProto::SetCachedSize(int size) const {
4328
0
  _impl_._cached_size_.Set(size);
4329
0
}
4330
4331
2.91k
void GifProto::Clear() {
4332
// @@protoc_insertion_point(message_clear_start:gifProtoFuzzer.GifProto)
4333
2.91k
  uint32_t cached_has_bits = 0;
4334
  // Prevent compiler warnings about cached_has_bits being unused
4335
2.91k
  (void) cached_has_bits;
4336
4337
2.91k
  _impl_.chunks_.Clear();
4338
2.91k
  cached_has_bits = _impl_._has_bits_[0];
4339
2.91k
  if (cached_has_bits & 0x0000000fu) {
4340
42
    if (cached_has_bits & 0x00000001u) {
4341
18
      GOOGLE_DCHECK(_impl_.header_ != nullptr);
4342
18
      _impl_.header_->Clear();
4343
18
    }
4344
42
    if (cached_has_bits & 0x00000002u) {
4345
21
      GOOGLE_DCHECK(_impl_.lsd_ != nullptr);
4346
21
      _impl_.lsd_->Clear();
4347
21
    }
4348
42
    if (cached_has_bits & 0x00000004u) {
4349
21
      GOOGLE_DCHECK(_impl_.gct_ != nullptr);
4350
21
      _impl_.gct_->Clear();
4351
21
    }
4352
42
    if (cached_has_bits & 0x00000008u) {
4353
12
      GOOGLE_DCHECK(_impl_.trailer_ != nullptr);
4354
12
      _impl_.trailer_->Clear();
4355
12
    }
4356
42
  }
4357
2.91k
  _impl_._has_bits_.Clear();
4358
2.91k
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
4359
2.91k
}
4360
4361
0
const char* GifProto::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
4362
0
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4363
0
  _Internal::HasBits has_bits{};
4364
0
  while (!ctx->Done(&ptr)) {
4365
0
    uint32_t tag;
4366
0
    ptr = ::_pbi::ReadTag(ptr, &tag);
4367
0
    switch (tag >> 3) {
4368
      // required .gifProtoFuzzer.Header header = 1;
4369
0
      case 1:
4370
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
4371
0
          ptr = ctx->ParseMessage(_internal_mutable_header(), ptr);
4372
0
          CHK_(ptr);
4373
0
        } else
4374
0
          goto handle_unusual;
4375
0
        continue;
4376
      // required .gifProtoFuzzer.LogicalScreenDescriptor lsd = 2;
4377
0
      case 2:
4378
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
4379
0
          ptr = ctx->ParseMessage(_internal_mutable_lsd(), ptr);
4380
0
          CHK_(ptr);
4381
0
        } else
4382
0
          goto handle_unusual;
4383
0
        continue;
4384
      // required .gifProtoFuzzer.GlobalColorTable gct = 3;
4385
0
      case 3:
4386
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
4387
0
          ptr = ctx->ParseMessage(_internal_mutable_gct(), ptr);
4388
0
          CHK_(ptr);
4389
0
        } else
4390
0
          goto handle_unusual;
4391
0
        continue;
4392
      // repeated .gifProtoFuzzer.ImageChunk chunks = 4;
4393
0
      case 4:
4394
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
4395
0
          ptr -= 1;
4396
0
          do {
4397
0
            ptr += 1;
4398
0
            ptr = ctx->ParseMessage(_internal_add_chunks(), ptr);
4399
0
            CHK_(ptr);
4400
0
            if (!ctx->DataAvailable(ptr)) break;
4401
0
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
4402
0
        } else
4403
0
          goto handle_unusual;
4404
0
        continue;
4405
      // required .gifProtoFuzzer.Trailer trailer = 5;
4406
0
      case 5:
4407
0
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
4408
0
          ptr = ctx->ParseMessage(_internal_mutable_trailer(), ptr);
4409
0
          CHK_(ptr);
4410
0
        } else
4411
0
          goto handle_unusual;
4412
0
        continue;
4413
0
      default:
4414
0
        goto handle_unusual;
4415
0
    }  // switch
4416
0
  handle_unusual:
4417
0
    if ((tag == 0) || ((tag & 7) == 4)) {
4418
0
      CHK_(ptr);
4419
0
      ctx->SetLastTag(tag);
4420
0
      goto message_done;
4421
0
    }
4422
0
    ptr = UnknownFieldParse(
4423
0
        tag,
4424
0
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
4425
0
        ptr, ctx);
4426
0
    CHK_(ptr != nullptr);
4427
0
  }  // while
4428
0
message_done:
4429
0
  _impl_._has_bits_.Or(has_bits);
4430
0
  return ptr;
4431
0
failure:
4432
0
  ptr = nullptr;
4433
0
  goto message_done;
4434
0
#undef CHK_
4435
0
}
4436
4437
uint8_t* GifProto::_InternalSerialize(
4438
0
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
4439
  // @@protoc_insertion_point(serialize_to_array_start:gifProtoFuzzer.GifProto)
4440
0
  uint32_t cached_has_bits = 0;
4441
0
  (void) cached_has_bits;
4442
4443
0
  cached_has_bits = _impl_._has_bits_[0];
4444
  // required .gifProtoFuzzer.Header header = 1;
4445
0
  if (cached_has_bits & 0x00000001u) {
4446
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4447
0
      InternalWriteMessage(1, _Internal::header(this),
4448
0
        _Internal::header(this).GetCachedSize(), target, stream);
4449
0
  }
4450
4451
  // required .gifProtoFuzzer.LogicalScreenDescriptor lsd = 2;
4452
0
  if (cached_has_bits & 0x00000002u) {
4453
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4454
0
      InternalWriteMessage(2, _Internal::lsd(this),
4455
0
        _Internal::lsd(this).GetCachedSize(), target, stream);
4456
0
  }
4457
4458
  // required .gifProtoFuzzer.GlobalColorTable gct = 3;
4459
0
  if (cached_has_bits & 0x00000004u) {
4460
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4461
0
      InternalWriteMessage(3, _Internal::gct(this),
4462
0
        _Internal::gct(this).GetCachedSize(), target, stream);
4463
0
  }
4464
4465
  // repeated .gifProtoFuzzer.ImageChunk chunks = 4;
4466
0
  for (unsigned i = 0,
4467
0
      n = static_cast<unsigned>(this->_internal_chunks_size()); i < n; i++) {
4468
0
    const auto& repfield = this->_internal_chunks(i);
4469
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4470
0
        InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream);
4471
0
  }
4472
4473
  // required .gifProtoFuzzer.Trailer trailer = 5;
4474
0
  if (cached_has_bits & 0x00000008u) {
4475
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4476
0
      InternalWriteMessage(5, _Internal::trailer(this),
4477
0
        _Internal::trailer(this).GetCachedSize(), target, stream);
4478
0
  }
4479
4480
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4481
0
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
4482
0
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
4483
0
  }
4484
  // @@protoc_insertion_point(serialize_to_array_end:gifProtoFuzzer.GifProto)
4485
0
  return target;
4486
0
}
4487
4488
0
size_t GifProto::RequiredFieldsByteSizeFallback() const {
4489
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:gifProtoFuzzer.GifProto)
4490
0
  size_t total_size = 0;
4491
4492
0
  if (_internal_has_header()) {
4493
    // required .gifProtoFuzzer.Header header = 1;
4494
0
    total_size += 1 +
4495
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4496
0
        *_impl_.header_);
4497
0
  }
4498
4499
0
  if (_internal_has_lsd()) {
4500
    // required .gifProtoFuzzer.LogicalScreenDescriptor lsd = 2;
4501
0
    total_size += 1 +
4502
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4503
0
        *_impl_.lsd_);
4504
0
  }
4505
4506
0
  if (_internal_has_gct()) {
4507
    // required .gifProtoFuzzer.GlobalColorTable gct = 3;
4508
0
    total_size += 1 +
4509
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4510
0
        *_impl_.gct_);
4511
0
  }
4512
4513
0
  if (_internal_has_trailer()) {
4514
    // required .gifProtoFuzzer.Trailer trailer = 5;
4515
0
    total_size += 1 +
4516
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4517
0
        *_impl_.trailer_);
4518
0
  }
4519
4520
0
  return total_size;
4521
0
}
4522
0
size_t GifProto::ByteSizeLong() const {
4523
// @@protoc_insertion_point(message_byte_size_start:gifProtoFuzzer.GifProto)
4524
0
  size_t total_size = 0;
4525
4526
0
  if (((_impl_._has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) {  // All required fields are present.
4527
    // required .gifProtoFuzzer.Header header = 1;
4528
0
    total_size += 1 +
4529
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4530
0
        *_impl_.header_);
4531
4532
    // required .gifProtoFuzzer.LogicalScreenDescriptor lsd = 2;
4533
0
    total_size += 1 +
4534
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4535
0
        *_impl_.lsd_);
4536
4537
    // required .gifProtoFuzzer.GlobalColorTable gct = 3;
4538
0
    total_size += 1 +
4539
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4540
0
        *_impl_.gct_);
4541
4542
    // required .gifProtoFuzzer.Trailer trailer = 5;
4543
0
    total_size += 1 +
4544
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4545
0
        *_impl_.trailer_);
4546
4547
0
  } else {
4548
0
    total_size += RequiredFieldsByteSizeFallback();
4549
0
  }
4550
0
  uint32_t cached_has_bits = 0;
4551
  // Prevent compiler warnings about cached_has_bits being unused
4552
0
  (void) cached_has_bits;
4553
4554
  // repeated .gifProtoFuzzer.ImageChunk chunks = 4;
4555
0
  total_size += 1UL * this->_internal_chunks_size();
4556
0
  for (const auto& msg : this->_impl_.chunks_) {
4557
0
    total_size +=
4558
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
4559
0
  }
4560
4561
0
  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
4562
0
}
4563
4564
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GifProto::_class_data_ = {
4565
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
4566
    GifProto::MergeImpl
4567
};
4568
0
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GifProto::GetClassData() const { return &_class_data_; }
4569
4570
4571
0
void GifProto::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
4572
0
  auto* const _this = static_cast<GifProto*>(&to_msg);
4573
0
  auto& from = static_cast<const GifProto&>(from_msg);
4574
  // @@protoc_insertion_point(class_specific_merge_from_start:gifProtoFuzzer.GifProto)
4575
0
  GOOGLE_DCHECK_NE(&from, _this);
4576
0
  uint32_t cached_has_bits = 0;
4577
0
  (void) cached_has_bits;
4578
4579
0
  _this->_impl_.chunks_.MergeFrom(from._impl_.chunks_);
4580
0
  cached_has_bits = from._impl_._has_bits_[0];
4581
0
  if (cached_has_bits & 0x0000000fu) {
4582
0
    if (cached_has_bits & 0x00000001u) {
4583
0
      _this->_internal_mutable_header()->::gifProtoFuzzer::Header::MergeFrom(
4584
0
          from._internal_header());
4585
0
    }
4586
0
    if (cached_has_bits & 0x00000002u) {
4587
0
      _this->_internal_mutable_lsd()->::gifProtoFuzzer::LogicalScreenDescriptor::MergeFrom(
4588
0
          from._internal_lsd());
4589
0
    }
4590
0
    if (cached_has_bits & 0x00000004u) {
4591
0
      _this->_internal_mutable_gct()->::gifProtoFuzzer::GlobalColorTable::MergeFrom(
4592
0
          from._internal_gct());
4593
0
    }
4594
0
    if (cached_has_bits & 0x00000008u) {
4595
0
      _this->_internal_mutable_trailer()->::gifProtoFuzzer::Trailer::MergeFrom(
4596
0
          from._internal_trailer());
4597
0
    }
4598
0
  }
4599
0
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
4600
0
}
4601
4602
0
void GifProto::CopyFrom(const GifProto& from) {
4603
// @@protoc_insertion_point(class_specific_copy_from_start:gifProtoFuzzer.GifProto)
4604
0
  if (&from == this) return;
4605
0
  Clear();
4606
0
  MergeFrom(from);
4607
0
}
4608
4609
0
bool GifProto::IsInitialized() const {
4610
0
  if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false;
4611
0
  if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(_impl_.chunks_))
4612
0
    return false;
4613
0
  if (_internal_has_header()) {
4614
0
    if (!_impl_.header_->IsInitialized()) return false;
4615
0
  }
4616
0
  if (_internal_has_lsd()) {
4617
0
    if (!_impl_.lsd_->IsInitialized()) return false;
4618
0
  }
4619
0
  if (_internal_has_gct()) {
4620
0
    if (!_impl_.gct_->IsInitialized()) return false;
4621
0
  }
4622
0
  return true;
4623
0
}
4624
4625
0
void GifProto::InternalSwap(GifProto* other) {
4626
0
  using std::swap;
4627
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
4628
0
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
4629
0
  _impl_.chunks_.InternalSwap(&other->_impl_.chunks_);
4630
0
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
4631
0
      PROTOBUF_FIELD_OFFSET(GifProto, _impl_.trailer_)
4632
0
      + sizeof(GifProto::_impl_.trailer_)
4633
0
      - PROTOBUF_FIELD_OFFSET(GifProto, _impl_.header_)>(
4634
0
          reinterpret_cast<char*>(&_impl_.header_),
4635
0
          reinterpret_cast<char*>(&other->_impl_.header_));
4636
0
}
4637
4638
235k
::PROTOBUF_NAMESPACE_ID::Metadata GifProto::GetMetadata() const {
4639
235k
  return ::_pbi::AssignDescriptors(
4640
235k
      &descriptor_table_gif_5ffuzz_5fproto_2eproto_getter, &descriptor_table_gif_5ffuzz_5fproto_2eproto_once,
4641
235k
      file_level_metadata_gif_5ffuzz_5fproto_2eproto[14]);
4642
235k
}
4643
4644
// @@protoc_insertion_point(namespace_scope)
4645
}  // namespace gifProtoFuzzer
4646
PROTOBUF_NAMESPACE_OPEN
4647
template<> PROTOBUF_NOINLINE ::gifProtoFuzzer::LogicalScreenDescriptor*
4648
1.85k
Arena::CreateMaybeMessage< ::gifProtoFuzzer::LogicalScreenDescriptor >(Arena* arena) {
4649
1.85k
  return Arena::CreateMessageInternal< ::gifProtoFuzzer::LogicalScreenDescriptor >(arena);
4650
1.85k
}
4651
template<> PROTOBUF_NOINLINE ::gifProtoFuzzer::GlobalColorTable*
4652
1.84k
Arena::CreateMaybeMessage< ::gifProtoFuzzer::GlobalColorTable >(Arena* arena) {
4653
1.84k
  return Arena::CreateMessageInternal< ::gifProtoFuzzer::GlobalColorTable >(arena);
4654
1.84k
}
4655
template<> PROTOBUF_NOINLINE ::gifProtoFuzzer::ImageDescriptor*
4656
2.06k
Arena::CreateMaybeMessage< ::gifProtoFuzzer::ImageDescriptor >(Arena* arena) {
4657
2.06k
  return Arena::CreateMessageInternal< ::gifProtoFuzzer::ImageDescriptor >(arena);
4658
2.06k
}
4659
template<> PROTOBUF_NOINLINE ::gifProtoFuzzer::GraphicControlExtension*
4660
813
Arena::CreateMaybeMessage< ::gifProtoFuzzer::GraphicControlExtension >(Arena* arena) {
4661
813
  return Arena::CreateMessageInternal< ::gifProtoFuzzer::GraphicControlExtension >(arena);
4662
813
}
4663
template<> PROTOBUF_NOINLINE ::gifProtoFuzzer::PlainTextExtension*
4664
1.24k
Arena::CreateMaybeMessage< ::gifProtoFuzzer::PlainTextExtension >(Arena* arena) {
4665
1.24k
  return Arena::CreateMessageInternal< ::gifProtoFuzzer::PlainTextExtension >(arena);
4666
1.24k
}
4667
template<> PROTOBUF_NOINLINE ::gifProtoFuzzer::LocalColorTable*
4668
2.12k
Arena::CreateMaybeMessage< ::gifProtoFuzzer::LocalColorTable >(Arena* arena) {
4669
2.12k
  return Arena::CreateMessageInternal< ::gifProtoFuzzer::LocalColorTable >(arena);
4670
2.12k
}
4671
template<> PROTOBUF_NOINLINE ::gifProtoFuzzer::SubBlock*
4672
60.3k
Arena::CreateMaybeMessage< ::gifProtoFuzzer::SubBlock >(Arena* arena) {
4673
60.3k
  return Arena::CreateMessageInternal< ::gifProtoFuzzer::SubBlock >(arena);
4674
60.3k
}
4675
template<> PROTOBUF_NOINLINE ::gifProtoFuzzer::ImageData*
4676
2.16k
Arena::CreateMaybeMessage< ::gifProtoFuzzer::ImageData >(Arena* arena) {
4677
2.16k
  return Arena::CreateMessageInternal< ::gifProtoFuzzer::ImageData >(arena);
4678
2.16k
}
4679
template<> PROTOBUF_NOINLINE ::gifProtoFuzzer::BasicChunk*
4680
1.76k
Arena::CreateMaybeMessage< ::gifProtoFuzzer::BasicChunk >(Arena* arena) {
4681
1.76k
  return Arena::CreateMessageInternal< ::gifProtoFuzzer::BasicChunk >(arena);
4682
1.76k
}
4683
template<> PROTOBUF_NOINLINE ::gifProtoFuzzer::ApplicationExtension*
4684
1.56k
Arena::CreateMaybeMessage< ::gifProtoFuzzer::ApplicationExtension >(Arena* arena) {
4685
1.56k
  return Arena::CreateMessageInternal< ::gifProtoFuzzer::ApplicationExtension >(arena);
4686
1.56k
}
4687
template<> PROTOBUF_NOINLINE ::gifProtoFuzzer::CommentExtension*
4688
746
Arena::CreateMaybeMessage< ::gifProtoFuzzer::CommentExtension >(Arena* arena) {
4689
746
  return Arena::CreateMessageInternal< ::gifProtoFuzzer::CommentExtension >(arena);
4690
746
}
4691
template<> PROTOBUF_NOINLINE ::gifProtoFuzzer::Header*
4692
1.86k
Arena::CreateMaybeMessage< ::gifProtoFuzzer::Header >(Arena* arena) {
4693
1.86k
  return Arena::CreateMessageInternal< ::gifProtoFuzzer::Header >(arena);
4694
1.86k
}
4695
template<> PROTOBUF_NOINLINE ::gifProtoFuzzer::Trailer*
4696
1.80k
Arena::CreateMaybeMessage< ::gifProtoFuzzer::Trailer >(Arena* arena) {
4697
1.80k
  return Arena::CreateMessageInternal< ::gifProtoFuzzer::Trailer >(arena);
4698
1.80k
}
4699
template<> PROTOBUF_NOINLINE ::gifProtoFuzzer::ImageChunk*
4700
71.4k
Arena::CreateMaybeMessage< ::gifProtoFuzzer::ImageChunk >(Arena* arena) {
4701
71.4k
  return Arena::CreateMessageInternal< ::gifProtoFuzzer::ImageChunk >(arena);
4702
71.4k
}
4703
template<> PROTOBUF_NOINLINE ::gifProtoFuzzer::GifProto*
4704
0
Arena::CreateMaybeMessage< ::gifProtoFuzzer::GifProto >(Arena* arena) {
4705
0
  return Arena::CreateMessageInternal< ::gifProtoFuzzer::GifProto >(arena);
4706
0
}
4707
PROTOBUF_NAMESPACE_CLOSE
4708
4709
// @@protoc_insertion_point(global_scope)
4710
#include <google/protobuf/port_undef.inc>