protobuf-go/proto
Damien Neil 0bf97b7e36 internal/impl: messageset validation and isinit fixes
Recognize messagesets in the validator. Currently, this just gives
up and reports an unknown validity rather than trying to descend
into the messageset.

Plumb fast-path initialization checks through messageset decoding.

Change-Id: Ice55f28e8555764e4ce2720251830e8cf475c133
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/216245
Reviewed-by: Joe Tsai <joetsai@google.com>
2020-01-24 20:27:57 +00:00
..
bench_test.go all: remove APIv1 dependency 2020-01-09 18:06:30 +00:00
decode_gen.go proto: consistently use non-nil, zero-length []bytes for empty bytes strings 2019-12-09 17:33:50 +00:00
decode_test.go proto: distinguish between invalid and empty messages in Equal 2020-01-06 19:37:38 +00:00
decode.go proto: add MarshalState, UnmarshalState 2020-01-22 20:52:17 +00:00
doc.go
encode_gen.go all: support enforce_utf8 override 2019-07-15 19:53:05 +00:00
encode_test.go internal/impl: add message validator 2020-01-07 21:36:47 +00:00
encode.go proto: add MarshalState, UnmarshalState 2020-01-22 20:52:17 +00:00
equal_test.go proto: fix equality on nil values of different types 2020-01-06 23:36:47 +00:00
equal.go proto: fix equality on nil values of different types 2020-01-06 23:36:47 +00:00
extension_test.go internal/testprotos/legacy: rename and regenerate 2020-01-12 08:13:18 +00:00
extension.go all: rename ExtensionType Descriptor method to TypeDescriptor (1/2) 2019-08-28 18:34:29 +00:00
isinit_test.go proto, internal/impl: implement support for weak fields 2019-09-19 22:41:12 +00:00
isinit.go runtime/protoiface: move and rename XXX_Methods 2019-07-12 19:31:58 +00:00
merge_test.go proto: add MergeOptions.Shallow option 2020-01-06 20:26:20 +00:00
merge.go proto: add Clone function and MergeOptions.Clone method 2020-01-06 21:07:28 +00:00
messageset_test.go internal/impl: messageset validation and isinit fixes 2020-01-24 20:27:57 +00:00
messageset.go proto, internal/impl: store unknown MessageSet items in non-mset format 2019-11-11 19:40:27 +00:00
methods_test.go all: do best-effort initialization check on fast path unmarshal 2020-01-22 20:57:14 +00:00
noenforceutf8_test.go proto: rearrange test messages 2019-12-16 21:49:56 +00:00
proto_methods.go all: add ProtoMethods method to protoreflect.Message 2020-01-21 21:05:54 +00:00
proto_reflect.go proto: reset message by default in Unmarshal 2019-09-17 21:13:42 +00:00
proto.go all: remove dead code 2019-08-06 21:16:48 +00:00
reset_test.go internal/impl: treat a nil oneof wrapper as if it were unset 2019-08-16 00:24:53 +00:00
reset.go proto: reset message by default in Unmarshal 2019-09-17 21:13:42 +00:00
size_gen.go
size.go proto: add MarshalState, UnmarshalState 2020-01-22 20:52:17 +00:00
testmessages_test.go all: do best-effort initialization check on fast path unmarshal 2020-01-22 20:57:14 +00:00
validate_test.go internal/impl: add message validator 2020-01-07 21:36:47 +00:00
weak_test.go internal/impl: add message validator 2020-01-07 21:36:47 +00:00
wrappers.go proto: move T->*T wrappers from internal/scalar to proto 2019-07-12 17:35:01 +00:00