protobuf-go/encoding
Joe Tsai 0bf4113643 encoding: verify that the target message is extendable
After resolving a FieldDescriptor from the resolver, verify that the
returned descriptor truly does extend the target message.

This will never happen with the global registry, since it checks this
but can happen with poorly written custom resolvers.

Change-Id: I2de5b9d2fb9d32e076ec4e82adda98d672891444
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/193737
Reviewed-by: Herbie Ong <herbie@google.com>
2019-09-06 07:13:15 +00:00
..
protojson encoding: verify that the target message is extendable 2019-09-06 07:13:15 +00:00
prototext encoding: verify that the target message is extendable 2019-09-06 07:13:15 +00:00
testprotos all: rely on message_set_extension name mangling in ExtensionDescV1 2019-08-21 02:47:33 +00:00
bench_test.go all: remove use of deprecated NewMessage 2019-09-04 17:55:31 +00:00