commit | 2c0824b51235aeccac60b0dce3df3adc60e88294 | [log] [tgz] |
---|---|---|
author | Damien Neil <dneil@google.com> | Fri Dec 20 12:21:25 2019 -0800 |
committer | Damien Neil <dneil@google.com> | Fri Dec 20 22:08:18 2019 +0000 |
tree | 58d98a6574444b1ca1a7396f5e47e89368a77026 | |
parent | 75f53c59e126d8d48df0ee5a4e294e38a457bc2a [diff] |
internal/impl: fix size for zero-length packed extensions The size calculation for packed repeated extension fields was considering a zero-length list as encoding to a zero-length wire.BytesType field, rather than being omitted entirely. Change-Id: I7d4424a21ca8afd4fa81391caede49cadb4e2505 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/212297 Reviewed-by: Joe Tsai <joetsai@google.com>
WARNING: This repository is in active development. There are no guarantees about API stability. Breaking changes will occur until a stable release is made and announced.
This repository is for the development of the next major Go implementation of protocol buffers. This library makes breaking API changes relative to the existing Go protobuf library. Of particular note, this API aims to make protobuf reflection a first-class feature of the API and implements the protobuf ecosystem in terms of reflection.
List of relevant design documents:
We appreciate community contributions. See CONTRIBUTING.md.
Issues regarding the new API can be filed at github.com/golang/protobuf. Please use a APIv2:
prefix in the title to make it clear that the issue is regarding the new API work.