commit | d65001875f814a201b069cae0079abee28e6d5b1 | [log] [tgz] |
---|---|---|
author | Joe Tsai <joetsai@digital-static.net> | Tue Dec 10 17:28:03 2019 -0800 |
committer | Damien Neil <dneil@google.com> | Wed Dec 11 04:25:07 2019 +0000 |
tree | e58f2d7e05b7401c4097773049a3303235019ae9 | |
parent | 8517608739cdd220b21acc89420e05ba0988d965 [diff] |
internal/impl: fix aberrant message detection logic In very old messages predating the existence of the size cache or the proto3 unknown fields, it is possible that the generated struct lacks both XXX_ fields and ones tagged with "protobuf". This can happen with a message that only contains oneofs. As such, check for the "protobuf_oneof" tag as well. Change-Id: I1981cd7dde68aece1a013356b6bc91cc5529f951 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/210747 Reviewed-by: Damien Neil <dneil@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.