google-protobuf 3.21.11 → 3.21.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d3a7d7eadca0b256321276e0da63f3e8160ad31f0c44594b985a17ce9da13cc3
4
- data.tar.gz: 2a4517cc1daf7bba17ef02f0d2fe78d04b345ab89843351b45aa45f76ae495da
3
+ metadata.gz: a0b23be5be98bd61dc232a5ffb1eb6d7b11d38e21bf088140e79af252ad06fa4
4
+ data.tar.gz: 88fd35d071aa35107fe11dc3c4acbd07e437fdfa57bca40990c5c4961df58374
5
5
  SHA512:
6
- metadata.gz: 34a7ff176e5e7013a0847e3da765284622c9c997f817d9a31c0f88f6b93f0d29babf7c6b6f7ed82addc0f6a6e7472b15b395d93f611e99ee0fd9cb845c78596f
7
- data.tar.gz: 20de34c61e8cd188698b125cca1f3a4ac07a5135aac7e99c732779ba3a4e46738ef2ecf1261484922b5e1dc8a13756e50b7f54df9dc4deac56269f9f090fa041
6
+ metadata.gz: fb39de679d089a3ca3ce3b7bb4cb2bbb9085431f2530d6128e10b3d4b1153e6cb51ad4632449b9d458d0f4c9a71435f76f009ce6cbc3341bc22be8d28bb3f8fc
7
+ data.tar.gz: 154463a7fdc6fc8e0977253b2a6ed8493f515e014c4fd2ba60d5bf22f6711f0b6f6dd3bb816710c1ef2c66e212fd29edd8b90f6a98b0bd584b265d14a7ef72e4
@@ -5814,7 +5814,6 @@ upb_EnumReservedRange* _upb_EnumReservedRanges_New(
5814
5814
  google_protobuf_EnumDescriptorProto_EnumReservedRange_start(protos[i]);
5815
5815
  const int32_t end =
5816
5816
  google_protobuf_EnumDescriptorProto_EnumReservedRange_end(protos[i]);
5817
- const int32_t max = kUpb_MaxFieldNumber + 1;
5818
5817
 
5819
5818
  // A full validation would also check that each range is disjoint, and that
5820
5819
  // none of the fields overlap with the extension ranges, but we are just
@@ -5822,7 +5821,7 @@ upb_EnumReservedRange* _upb_EnumReservedRanges_New(
5822
5821
 
5823
5822
  // Note: Not a typo! Unlike extension ranges and message reserved ranges,
5824
5823
  // the end value of an enum reserved range is *inclusive*!
5825
- if (start < 1 || end < start || end > max) {
5824
+ if (end < start) {
5826
5825
  symtab_errf(ctx, "Reserved range (%d, %d) is invalid, enum=%s\n",
5827
5826
  (int)start, (int)end, upb_EnumDef_FullName(e));
5828
5827
  }
@@ -7855,7 +7854,7 @@ static void create_fielddef(
7855
7854
  CHK_OOM(
7856
7855
  upb_strtable_insert(&oneof->ntof, name.data, name.size, v, ctx->arena));
7857
7856
  } else {
7858
- if (f->proto3_optional_) {
7857
+ if (f->proto3_optional_ && !is_extension) {
7859
7858
  symtab_errf(ctx, "field with proto3_optional was not in a oneof (%s)",
7860
7859
  f->full_name);
7861
7860
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-protobuf
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.21.11
4
+ version: 3.21.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Protobuf Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-08 00:00:00.000000000 Z
11
+ date: 2022-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake-compiler-dock
@@ -109,7 +109,7 @@ homepage: https://developers.google.com/protocol-buffers
109
109
  licenses:
110
110
  - BSD-3-Clause
111
111
  metadata:
112
- source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.21.11/ruby
112
+ source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.21.12/ruby
113
113
  post_install_message:
114
114
  rdoc_options: []
115
115
  require_paths: