google-protobuf 4.34.0.rc.2 → 4.34.0
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.
- checksums.yaml +4 -4
- data/ext/google/protobuf_c/ruby-upb.c +5 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b04cf447a826a66a7a93311ac48c71b3a4553d5bf2d091cd3a636a24f36fcb6c
|
|
4
|
+
data.tar.gz: 6f44c323dccd1d287e6f98184abd2461d3cdf7b24f9d50be582a568675b7381c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0c76dcc5faa96b3c883e6eb38cfc434882fe92d99f4c2dd0cba5258242912970543708230f7a5fd9fa0fbc7ce5e07b8480544121ebbd4d11ca3915df95edb4f3
|
|
7
|
+
data.tar.gz: 2ffae4c325b12c944d21c59226d5ea61c1af78eb4bb28e88ed8837d41f394185b7cfcd8993023195360be60497579b5a3824919894e750b49deefeb285d58ad9
|
|
@@ -16168,9 +16168,13 @@ static void upb_Decoder_AddKnownMessageSetItem(
|
|
|
16168
16168
|
upb_Message* submsg = _upb_Decoder_NewSubMessage2(
|
|
16169
16169
|
d, ext->ext->UPB_PRIVATE(sub).UPB_PRIVATE(submsg),
|
|
16170
16170
|
&ext->ext->UPB_PRIVATE(field), submsgp);
|
|
16171
|
+
// upb_Decode_LimitDepth() takes uint32_t, d->depth - 1 can not be negative.
|
|
16172
|
+
if (d->depth <= 1) {
|
|
16173
|
+
upb_ErrorHandler_ThrowError(&d->err, kUpb_DecodeStatus_MaxDepthExceeded);
|
|
16174
|
+
}
|
|
16171
16175
|
upb_DecodeStatus status = upb_Decode(
|
|
16172
16176
|
data, size, submsg, upb_MiniTableExtension_GetSubMessage(item_mt),
|
|
16173
|
-
d->extreg, d->options, &d->arena);
|
|
16177
|
+
d->extreg, upb_Decode_LimitDepth(d->options, d->depth - 1), &d->arena);
|
|
16174
16178
|
if (status != kUpb_DecodeStatus_Ok) {
|
|
16175
16179
|
upb_ErrorHandler_ThrowError(&d->err, status);
|
|
16176
16180
|
}
|
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: 4.34.0
|
|
4
|
+
version: 4.34.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Protobuf Authors
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-02-
|
|
11
|
+
date: 2026-02-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bigdecimal
|
|
@@ -183,7 +183,7 @@ homepage: https://developers.google.com/protocol-buffers
|
|
|
183
183
|
licenses:
|
|
184
184
|
- BSD-3-Clause
|
|
185
185
|
metadata:
|
|
186
|
-
source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v4.34.0
|
|
186
|
+
source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v4.34.0/ruby
|
|
187
187
|
post_install_message:
|
|
188
188
|
rdoc_options: []
|
|
189
189
|
require_paths:
|