protobuf-go/internal/encoding
Joe Tsai 972d873b59 internal/encoding/wire: increase maximum field number
The protobuf documentation explicitly specifies (1<<29)-1 as the maximum
field number, but the C++ implementation itself has a special-case where it
allows field numbers up to MaxInt32 for MessageSet fields, but continues
to apply the former limit in all non-MessageSet cases.

To avoid complicated branching logic, we use the larger limit for all cases
if MessageSet is supported, otherwise, we impose the documented limit.

Change-Id: I710a2a21aa3beba161c3e6ca2f2ed9a266920a5a
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/175817
Reviewed-by: Damien Neil <dneil@google.com>
2019-05-07 21:39:02 +00:00
..
defval internal/encoding/defval: unify logic for handling default values 2018-12-07 22:40:20 +00:00
json internal/encoding/json: improve decoding speed and memory allocation 2019-04-29 22:13:25 +00:00
pack reflect/protoreflect: rename methods with Type suffix 2019-04-20 06:35:24 +00:00
tag reflect/protoreflect: rename methods with Type suffix 2019-04-20 06:35:24 +00:00
text internal/encoding/{json,text}: improve string parsing 2019-04-17 00:26:13 +00:00
wire internal/encoding/wire: increase maximum field number 2019-05-07 21:39:02 +00:00