Protocol Buffers v37.0-rc1

v37.0-rc1Pre-release

Protocol Buffers v37.0-rc1

Added 4
  • Add compiler flag --source_code_info_out to output SourceCodeInfo separately
  • Detect single-crate cross-file symbol collisions and conditionally emit crate-root re-exports
  • Implement GetSourceLocation for sub-fields and names of aggregate options
  • Log a warning in JsonFormat when printing extension fields with short names
Changed 10
  • Apply protoc depth limit of nested messages also to group types
  • Silence bad error when option dependencies are missing in the filesystem but present in input descriptor sets
  • Accept absl::Cord by value in Protobuf setters
  • Optimize ReadSize with 2-byte inlined fast path in parse_context.h
  • Suppress deprecation warnings for EnumTraitsImpl on deprecated enums
  • Honor cc_namespace option by using updated Namespace()
Fixed 4
  • Fix InlinedStringField memory leak when string donation is disabled
  • Fix data race in Python free threading by removing obsolete hack
  • Fix LazyField parsing with a custom DescriptorPool or MessageFactory that failed or lost extension data
  • Harden StreamDecoder against integer overflow risks above 2 GiB
Deprecated 2
  • Mark deprecated Enum messages as deprecated within C++ generated code
  • Add deprecation warning for Reflection::GetEnum() and Reflection::GetRepeatedEnum()
Security 1
  • Add field ownership check to SwapFields to prevent out-of-bounds memory access

From Protocol Buffers

Announcements

  • Protobuf News may include additional announcements or pre-announcements for upcoming changes.

Bazel

Compiler

C++

Java

Kotlin

Csharp

Objective-C

Rust

Python

PHP

PHP C-Extension

Ruby

Ruby C-Extension

UPB (Python/PHP/Ruby C-Extension)

Other

View original

Upgraded? How did it go?

Discussion