protobuf-go/encoding
cybrcodr beaa55256c encoding/protojson: add better validation to FieldMask serialization
For marshaling, apart from already existing check that each item in
paths field is reversible, also make sure that string is a valid
protobuf name.

For unmarshaling, make sure that each resulting item in paths field is
a valid protobuf name and input path item does not contain _. The latter
check satisfies the conformance test
Recommended.Proto3.JsonInput.FieldMaskInvalidCharacter.

Fixes golang/protobuf#1141.

Change-Id: Iffc278089b20e496b7216d5b8c966b21b70e782d
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/236998
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
2020-06-12 06:33:55 +00:00
..
protojson encoding/protojson: add better validation to FieldMask serialization 2020-06-12 06:33:55 +00:00
prototext internal/genid: add new package for generated identifiers 2020-05-29 07:08:23 +00:00
protowire encoding/protowire: make package publicly available 2020-03-20 07:42:18 +00:00
bench_test.go encoding: remove unused benchV1 flag 2020-02-25 21:50:06 +00:00