google-protobuf 3.21.8 → 3.21.9

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: 42878b39e56b69fd23d1c616d81bef82ca279c7872fa11a9d75005b4d0affb3f
4
- data.tar.gz: a6da6e837daa1b28dad8d2ceaa85a889746fda1eb4e1830266bbbff16a35bec3
3
+ metadata.gz: 2746d0595fc0b186c85f17262f409c76713073e50111c4dd3f588013ae90f6f5
4
+ data.tar.gz: ae8f23830c793843adb6bbb0a5201ed2c3532d912631fc07064ab23aacc30471
5
5
  SHA512:
6
- metadata.gz: b08289ac2aaf130780ad52af88d981d931d696690c3f139d054806247bbd472834c19cd6cd625adf17638018239074a7599e3b2878033b932a92e18561b3b815
7
- data.tar.gz: d29b79ecd9e5cd129d821384eb1cc11052523fde3283d8bd3edb7e29b08509d77e6df2c61f388e66efc3a6313351e1809dccb06578263316f71d73dd54fb7691
6
+ metadata.gz: 2c249f3d5a0487f0b19bce85cc28e7542ce73884cc76cedde7758f1b7ed456128f9b662ab9fece4370fe2287251e667a22bc79e3a70e3e626db1f5851897686b
7
+ data.tar.gz: 58b30c90cd44950ba4ecaddd8978b65106cac78a8b18224fe0f2de2fd2b90113184c4f7eb1e3e3d04098661f9f64238e15bc1d3a1dab1f76b2c322ff57b0a7b7
@@ -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);
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: ruby
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: