| commit | 9e30258e0aa6a6430ee36c84b75308a9702fde42 | [log] [tgz] |
|---|---|---|
| author | Ömer Sinan Ağacan <omersa@google.com> | Wed Nov 26 08:35:29 2025 +0000 |
| committer | GitHub <noreply@github.com> | Wed Nov 26 08:35:29 2025 +0000 |
| tree | 0c6c06f98551181f00a522b6f0565d0749731560 | |
| parent | cafeac4208a1139e370099591edc8b014dfcc204 [diff] |
Check key and value validity in PbMap (#1076) Currently `PbMap` does not check ranges of values added as keys or values. This allows serializing and deserializing a message with a map and getting a different map back, because `PbMap` allows adding values that are out of range (e.g. an integer larger than 32-bit range as a `sfixed32` value) but when serializing it truncates the value. Update `PbMap` to use the same validation functions as `PbList` when adding elements. Both keys and values are checked. Fixes #1065.
Protocol Buffers (protobuf) are Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data.
This repository is home to packages related to protobuf support for Dart.
| Package | Description | Published Version |
|---|---|---|
| protobuf | Runtime library for protocol buffers support. | |
| protoc_plugin | A protobuf protoc compiler plugin used to generate Dart code. | |
| benchmarks | Benchmarks for various protobuf functions. |
For information about our publishing automation and release process, see https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.