google-protobuf 3.15.6 → 3.17.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of google-protobuf might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/ext/google/protobuf_c/defs.c +35 -8
- data/ext/google/protobuf_c/extconf.rb +1 -0
- data/ext/google/protobuf_c/map.c +5 -3
- data/ext/google/protobuf_c/map.h +2 -1
- data/ext/google/protobuf_c/message.c +19 -11
- data/ext/google/protobuf_c/protobuf.c +108 -16
- data/ext/google/protobuf_c/protobuf.h +6 -0
- data/ext/google/protobuf_c/repeated_field.c +4 -2
- data/ext/google/protobuf_c/repeated_field.h +2 -1
- data/ext/google/protobuf_c/ruby-upb.c +756 -812
- data/ext/google/protobuf_c/ruby-upb.h +288 -329
- data/tests/basic.rb +7 -0
- metadata +4 -4
data/tests/basic.rb
CHANGED
@@ -63,6 +63,13 @@ module BasicTest
|
|
63
63
|
end
|
64
64
|
end
|
65
65
|
|
66
|
+
def test_issue_8559_crash
|
67
|
+
msg = TestMessage.new
|
68
|
+
msg.repeated_int32 = ::Google::Protobuf::RepeatedField.new(:int32, [1, 2, 3])
|
69
|
+
GC.start(full_mark: true, immediate_sweep: true)
|
70
|
+
TestMessage.encode(msg)
|
71
|
+
end
|
72
|
+
|
66
73
|
def test_has_field
|
67
74
|
m = TestSingularFields.new
|
68
75
|
assert !m.has_singular_msg?
|
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.
|
4
|
+
version: 3.17.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Protobuf Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake-compiler-dock
|
@@ -123,7 +123,7 @@ homepage: https://developers.google.com/protocol-buffers
|
|
123
123
|
licenses:
|
124
124
|
- BSD-3-Clause
|
125
125
|
metadata:
|
126
|
-
source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.
|
126
|
+
source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.17.3/ruby
|
127
127
|
post_install_message:
|
128
128
|
rdoc_options: []
|
129
129
|
require_paths:
|
@@ -139,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
139
|
- !ruby/object:Gem::Version
|
140
140
|
version: '0'
|
141
141
|
requirements: []
|
142
|
-
rubygems_version: 3.2.
|
142
|
+
rubygems_version: 3.2.19
|
143
143
|
signing_key:
|
144
144
|
specification_version: 4
|
145
145
|
summary: Protocol Buffers
|