🚀 Big News:Socket Has Acquired Secure Annex.Learn More
Socket
Book a DemoSign in
Socket

protobuf

Package Overview
Dependencies
Maintainers
1
Versions
214
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

protobuf - pypi Package Compare versions

Comparing version
7.34.0rc2
to
7.34.0
+1
-1
google/protobuf/__init__.py

@@ -10,2 +10,2 @@ # Protocol Buffers - Google's data interchange format

__version__ = '7.34.0rc2'
__version__ = '7.34.0'

@@ -5,3 +5,3 @@ # -*- coding: utf-8 -*-

# source: google/protobuf/any.proto
# Protobuf Python Version: 7.34.0-rc2
# Protobuf Python Version: 7.34.0
"""Generated protocol buffer code."""

@@ -18,3 +18,3 @@ from google.protobuf import descriptor as _descriptor

0,
'-rc2',
'',
'google/protobuf/any.proto'

@@ -21,0 +21,0 @@ )

@@ -5,3 +5,3 @@ # -*- coding: utf-8 -*-

# source: google/protobuf/api.proto
# Protobuf Python Version: 7.34.0-rc2
# Protobuf Python Version: 7.34.0
"""Generated protocol buffer code."""

@@ -18,3 +18,3 @@ from google.protobuf import descriptor as _descriptor

0,
'-rc2',
'',
'google/protobuf/api.proto'

@@ -21,0 +21,0 @@ )

@@ -5,3 +5,3 @@ # -*- coding: utf-8 -*-

# source: google/protobuf/compiler/plugin.proto
# Protobuf Python Version: 7.34.0-rc2
# Protobuf Python Version: 7.34.0
"""Generated protocol buffer code."""

@@ -18,3 +18,3 @@ from google.protobuf import descriptor as _descriptor

0,
'-rc2',
'',
'google/protobuf/compiler/plugin.proto'

@@ -21,0 +21,0 @@ )

@@ -5,3 +5,3 @@ # -*- coding: utf-8 -*-

# source: google/protobuf/duration.proto
# Protobuf Python Version: 7.34.0-rc2
# Protobuf Python Version: 7.34.0
"""Generated protocol buffer code."""

@@ -18,3 +18,3 @@ from google.protobuf import descriptor as _descriptor

0,
'-rc2',
'',
'google/protobuf/duration.proto'

@@ -21,0 +21,0 @@ )

@@ -5,3 +5,3 @@ # -*- coding: utf-8 -*-

# source: google/protobuf/empty.proto
# Protobuf Python Version: 7.34.0-rc2
# Protobuf Python Version: 7.34.0
"""Generated protocol buffer code."""

@@ -18,3 +18,3 @@ from google.protobuf import descriptor as _descriptor

0,
'-rc2',
'',
'google/protobuf/empty.proto'

@@ -21,0 +21,0 @@ )

@@ -5,3 +5,3 @@ # -*- coding: utf-8 -*-

# source: google/protobuf/field_mask.proto
# Protobuf Python Version: 7.34.0-rc2
# Protobuf Python Version: 7.34.0
"""Generated protocol buffer code."""

@@ -18,3 +18,3 @@ from google.protobuf import descriptor as _descriptor

0,
'-rc2',
'',
'google/protobuf/field_mask.proto'

@@ -21,0 +21,0 @@ )

@@ -838,3 +838,3 @@ # Protocol Buffers - Google's data interchange format

def DecodeItem(buffer, pos, end, message, field_dict):
def DecodeItem(buffer, pos, end, message, field_dict, current_depth=0):
"""Decode serialized message set to its value and new position.

@@ -892,6 +892,15 @@

extension, message_type._concrete_class())
if value._InternalParse(buffer, message_start,message_end) != message_end:
current_depth += 1
if current_depth > _recursion_limit:
raise _DecodeError('Error parsing message: too many levels of nesting.')
if (
value._InternalParse(
buffer, message_start, message_end, current_depth
)
!= message_end
):
# The only reason _InternalParse would return early is if it encountered
# an end-group tag.
raise _DecodeError('Unexpected end-group tag.')
current_depth -= 1
else:

@@ -962,3 +971,2 @@ if not message._unknown_fields:

def DecodeMap(buffer, pos, end, message, field_dict, current_depth=0):
del current_depth # Unused.
submsg = message_type._concrete_class()

@@ -976,6 +984,10 @@ value = field_dict.get(key)

submsg.Clear()
if submsg._InternalParse(buffer, pos, new_pos) != new_pos:
current_depth += 1
if current_depth > _recursion_limit:
raise _DecodeError('Error parsing message: too many levels of nesting.')
if submsg._InternalParse(buffer, pos, new_pos, current_depth) != new_pos:
# The only reason _InternalParse would return early is if it
# encountered an end-group tag.
raise _DecodeError('Unexpected end-group tag.')
current_depth -= 1

@@ -982,0 +994,0 @@ if is_message_map:

@@ -1244,3 +1244,5 @@ # Protocol Buffers - Google's data interchange format

if field_decoder:
pos = field_decoder(buffer, new_pos, end, self, field_dict)
pos = field_decoder(
buffer, new_pos, end, self, field_dict, current_depth
)
continue

@@ -1247,0 +1249,0 @@ field_des, is_packed = fields_by_tag.get(tag_bytes, (None, None))

@@ -33,3 +33,3 @@ # Protocol Buffers - Google's data interchange format

OSS_PATCH = 0
OSS_SUFFIX = '-rc2'
OSS_SUFFIX = ''

@@ -36,0 +36,0 @@ DOMAIN = OSS_DOMAIN

@@ -5,3 +5,3 @@ # -*- coding: utf-8 -*-

# source: google/protobuf/source_context.proto
# Protobuf Python Version: 7.34.0-rc2
# Protobuf Python Version: 7.34.0
"""Generated protocol buffer code."""

@@ -18,3 +18,3 @@ from google.protobuf import descriptor as _descriptor

0,
'-rc2',
'',
'google/protobuf/source_context.proto'

@@ -21,0 +21,0 @@ )

@@ -5,3 +5,3 @@ # -*- coding: utf-8 -*-

# source: google/protobuf/struct.proto
# Protobuf Python Version: 7.34.0-rc2
# Protobuf Python Version: 7.34.0
"""Generated protocol buffer code."""

@@ -18,3 +18,3 @@ from google.protobuf import descriptor as _descriptor

0,
'-rc2',
'',
'google/protobuf/struct.proto'

@@ -21,0 +21,0 @@ )

@@ -5,3 +5,3 @@ # -*- coding: utf-8 -*-

# source: google/protobuf/timestamp.proto
# Protobuf Python Version: 7.34.0-rc2
# Protobuf Python Version: 7.34.0
"""Generated protocol buffer code."""

@@ -18,3 +18,3 @@ from google.protobuf import descriptor as _descriptor

0,
'-rc2',
'',
'google/protobuf/timestamp.proto'

@@ -21,0 +21,0 @@ )

@@ -5,3 +5,3 @@ # -*- coding: utf-8 -*-

# source: google/protobuf/type.proto
# Protobuf Python Version: 7.34.0-rc2
# Protobuf Python Version: 7.34.0
"""Generated protocol buffer code."""

@@ -18,3 +18,3 @@ from google.protobuf import descriptor as _descriptor

0,
'-rc2',
'',
'google/protobuf/type.proto'

@@ -21,0 +21,0 @@ )

@@ -5,3 +5,3 @@ # -*- coding: utf-8 -*-

# source: google/protobuf/wrappers.proto
# Protobuf Python Version: 7.34.0-rc2
# Protobuf Python Version: 7.34.0
"""Generated protocol buffer code."""

@@ -18,3 +18,3 @@ from google.protobuf import descriptor as _descriptor

0,
'-rc2',
'',
'google/protobuf/wrappers.proto'

@@ -21,0 +21,0 @@ )

Metadata-Version: 2.4
Name: protobuf
Version: 7.34.0rc2
Version: 7.34.0
Summary: Protocol Buffers

@@ -5,0 +5,0 @@ Home-page: https://developers.google.com/protocol-buffers/

Metadata-Version: 2.4
Name: protobuf
Version: 7.34.0rc2
Version: 7.34.0
Summary: Protocol Buffers

@@ -5,0 +5,0 @@ Home-page: https://developers.google.com/protocol-buffers/

@@ -651,5 +651,9 @@ // Protocol Buffers - Google's data interchange format

&ext->ext->UPB_PRIVATE(field), submsgp);
// upb_Decode_LimitDepth() takes uint32_t, d->depth - 1 can not be negative.
if (d->depth <= 1) {
upb_ErrorHandler_ThrowError(&d->err, kUpb_DecodeStatus_MaxDepthExceeded);
}
upb_DecodeStatus status = upb_Decode(
data, size, submsg, upb_MiniTableExtension_GetSubMessage(item_mt),
d->extreg, d->options, &d->arena);
d->extreg, upb_Decode_LimitDepth(d->options, d->depth - 1), &d->arena);
if (status != kUpb_DecodeStatus_Ok) {

@@ -656,0 +660,0 @@ upb_ErrorHandler_ThrowError(&d->err, status);

Sorry, the diff of this file is too big to display