Also added a test to verify that no uninitialized access happens in NumExtensions. Creation `Extension()` does zero initialization. Illustration: https://gcc.godbolt.org/z/37j8hrb9T PiperOrigin-RevId: 698094874pull/19314/head
parent
ea0ab2d9a5
commit
a8c4159734
4 changed files with 18 additions and 20 deletions
@ -1,17 +0,0 @@ |
|||||||
#region Copyright notice and license |
|
||||||
// Protocol Buffers - Google's data interchange format |
|
||||||
// Copyright 2008 Google Inc. All rights reserved. |
|
||||||
// |
|
||||||
// Use of this source code is governed by a BSD-style |
|
||||||
// license that can be found in the LICENSE file or at |
|
||||||
// https://developers.google.com/open-source/licenses/bsd |
|
||||||
#endregion |
|
||||||
|
|
||||||
namespace Google.Protobuf.Reflection; |
|
||||||
|
|
||||||
internal sealed partial class FeatureSetDescriptor |
|
||||||
{ |
|
||||||
// Canonical serialized form of the edition defaults, generated by embed_edition_defaults. |
|
||||||
private const string DefaultsBase64 = |
|
||||||
"ChMYhAciACoMCAEQAhgCIAMoATACChMY5wciACoMCAIQARgBIAIoATABChMY6AciDAgBEAEYASACKAEwASoAIOYHKOgH"; |
|
||||||
} |
|
Loading…
Reference in new issue