commit | ef75becaa887e748bd9bca2c4b5ee26a0b24c4b2 | [log] [tgz] |
---|---|---|
author | Joe Tsai <joetsai@digital-static.net> | Thu Jun 20 00:03:14 2019 -0700 |
committer | Joe Tsai <joetsai@digital-static.net> | Thu Jun 20 19:48:37 2019 +0000 |
tree | 817d612b129a24b21d48e36b1aec494a4a8720de | |
parent | 7ea76d2a4c800487ec2a583f747736826277ff9e [diff] |
proto: fix memory aliasing bug in Reset Fix a bug where using Message.Range alone does not clear memory references for empty, but allocated lists and maps. Thus, we iterate over every known field and explicitly call Clear. Change-Id: I9c1847d4056cf66f3199947150f3140d0783444a Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/183197 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.