google-protobuf 3.21.8-x86-linux → 3.21.9-x86-linux

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: f000a1796d8566c32f5ea8a81603a432a0c51f4eab5d180c6843630d1c2a7e49
4
- data.tar.gz: b488cbe6529452db480d3da180695377f9e628f8909e5cea9658fd14d23e4d78
3
+ metadata.gz: 8e0a2541256b982a258480b2782b0694d592492f456b0c3e4aaa5c99e6089e1f
4
+ data.tar.gz: a7d6338d90e455558f71b7d6025bfef55f728a148db8293cd02942c9ef432086
5
5
  SHA512:
6
- metadata.gz: 5fb3e90ee4ce4be42eff94cbd15b0e03ae67e53071418f0957ebb373458006f277dc0a14c679c625cb68b7e98fa816460a4851d92502b529847dc81871fdcbd0
7
- data.tar.gz: 6c8678d785221a59f00f25cf897720c65bafaa2924475871003eb83153896a921faaba797b861661a6643472338b38764f2e5320611e7d999dc9aa91bc044ddb
6
+ metadata.gz: 4963d55ce30cbde0f2d38874de501661842dfedb667a64f3aaa71fb7fd87a2925774c50df3baf1ca88149c240d8a5f7a33c17d9a3a201548cb29d9da6b7c6ce4
7
+ data.tar.gz: 8516b0fd9f888a516c88593978f0430ce55b9411e43187a32c700e783b0a44ca105127dfe421fd1725c06fe180421fbce3186eafeca54f224ad955ad6214b6be
@@ -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
Binary file
Binary file
Binary file
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: x86-linux
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
@@ -113,7 +113,7 @@ homepage: https://developers.google.com/protocol-buffers
113
113
  licenses:
114
114
  - BSD-3-Clause
115
115
  metadata:
116
- source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.21.8/ruby
116
+ source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.21.9/ruby
117
117
  post_install_message:
118
118
  rdoc_options: []
119
119
  require_paths: