protobuf-go/internal
Damien Neil a5526f0129 internal/impl: fix off-by-one error in message initialization
This particular off-by-one can never happen in practice. We will crash
if a field has a number one greater than the maximum field number in the
dense array, but if field number N is in the array we will always put
N+1 in it as well.

Fix the off-by-one anyway.

Change-Id: I8c1304f2fc0d7b91036bde3f7ddb7115c21781ca
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/229278
Reviewed-by: Joe Tsai <joetsai@google.com>
2020-04-21 21:23:04 +00:00
..
benchmarks all: upgrade protobuf to v3.11.4 2020-03-13 19:49:20 +00:00
cmd internal/cmd/generate-protos: use module= generator option 2020-03-20 21:35:56 +00:00
conformance all: regenerate remote .proto files 2020-03-18 20:17:11 +00:00
descfmt
descopts
detectknown internal/detectknown: add helper package to identify well-known types 2020-03-24 23:06:32 +00:00
detrand
encoding all: fix golint violations 2020-03-21 00:04:20 +00:00
errors all: scrub all TODOs 2020-02-10 19:28:48 +00:00
fieldnum all: remove stray "." from license headers 2020-02-20 18:54:38 +00:00
fieldsort
filedesc encoding/protowire: make package publicly available 2020-03-20 07:42:18 +00:00
filetype
flags all: fix golint violations 2020-03-21 00:04:20 +00:00
fuzz internal/fuzz: update to use native go-fuzz 2020-04-15 01:18:53 +00:00
fuzztest internal/fuzztest: set cap to len on test byte slice 2020-02-05 22:46:04 +00:00
genname
impl internal/impl: fix off-by-one error in message initialization 2020-04-21 21:23:04 +00:00
mapsort
msgfmt internal/detectknown: add helper package to identify well-known types 2020-03-24 23:06:32 +00:00
pragma all: add a test for copyright headers 2020-02-21 18:41:46 +00:00
protobuild all: trivial formatting changes 2020-02-25 21:59:54 +00:00
protolegacy all: add a test for copyright headers 2020-02-21 18:41:46 +00:00
set
strs
testprotos all: regenerate remote .proto files 2020-03-18 20:17:11 +00:00
version all: start v1.21.0-devel 2020-04-13 18:57:37 +00:00
weakdeps internal/weakdeps: put APIv1 weak dependency behind a build constraint 2020-02-14 21:08:34 +00:00