google-protobuf 3.21.8-x64-mingw-ucrt → 3.21.9-x64-mingw-ucrt

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of google-protobuf might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b43e001a907b0a9974fcbfe258aab4dbe522d5b69f297219440958d4fcede2c7
4
- data.tar.gz: 39ecb33b54781742242372b2900b634086ab0af94b969de179939e477bdf8a86
3
+ metadata.gz: f06a00886661cf904740f1ca055047b9453d9e2dc30df55b1757c5e812b36245
4
+ data.tar.gz: d4e6c2bc4d0aff18ddeae0b7d41d33f6fa9a1183e715a077ac446fc7993cfd7c
5
5
  SHA512:
6
- metadata.gz: 22db647636da2e3a40e7887bbe63cb792e35cff41151e7675059e7a610c00cdb5d1d33172439ef04af4a3009db4bb5a5340cbd610cf1fc11a5656ab40dec1fa2
7
- data.tar.gz: 83c5a75f6f147dddb68972b8a2e82f47a49356fc77f092a2ae1eb665147e9e68c8de570f93bbddd983434da92002144eef2aab4f6dad926f3adf990c4ea2992a
6
+ metadata.gz: 4ac99997f1ca4dd4daf57e5b961850a58bda66edb63f069ef355bad1d59e088b253f6c101e4784ca980164a40d06eb937ffa37a4703d7b84b386341d84428f36
7
+ data.tar.gz: 5169b05707b09b5d18c2e12d39c14304bedba5a08c38832deb36d82e1a3ed4ad04c4e8478f34391447b9c0878315972d4ad9401ada81fe76d4080413e4e208a2
@@ -1290,7 +1290,9 @@ VALUE build_module_from_enumdesc(VALUE _enumdesc) {
1290
1290
  int n = upb_EnumDef_ValueCount(e);
1291
1291
  for (int i = 0; i < n; i++) {
1292
1292
  const upb_EnumValueDef* ev = upb_EnumDef_Value(e, i);
1293
- char* name = strdup(upb_EnumValueDef_Name(ev));
1293
+ upb_Arena* arena = upb_Arena_New();
1294
+ const char* src_name = upb_EnumValueDef_Name(ev);
1295
+ char* name = upb_strdup2(src_name, strlen(src_name), arena);
1294
1296
  int32_t value = upb_EnumValueDef_Number(ev);
1295
1297
  if (name[0] < 'A' || name[0] > 'Z') {
1296
1298
  if (name[0] >= 'a' && name[0] <= 'z') {
@@ -1303,7 +1305,7 @@ VALUE build_module_from_enumdesc(VALUE _enumdesc) {
1303
1305
  }
1304
1306
  }
1305
1307
  rb_define_const(mod, name, INT2NUM(value));
1306
- free(name);
1308
+ upb_Arena_Free(arena);
1307
1309
  }
1308
1310
 
1309
1311
  rb_define_singleton_method(mod, "lookup", enum_lookup, 1);
Binary file
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.8
4
+ version: 3.21.9
5
5
  platform: x64-mingw-ucrt
6
6
  authors:
7
7
  - Protobuf Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-18 00:00:00.000000000 Z
11
+ date: 2022-10-26 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.8/ruby
112
+ source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.21.9/ruby
113
113
  post_install_message:
114
114
  rdoc_options: []
115
115
  require_paths: