protobuf-go/internal
Damien Neil d3874051d7 internal/encoding/messageset: don't modify input data when unmarshaling
When combining multiple message fields in a MessageSet item (a case
which should never happen in practice), unmarshal could modify the input
data. Fix it to not do so. Add a general check to ensure that unmarshal
operations don't modify the input.

Change-Id: Idde46e6132a1dc96c374f9146efff81783c3bef3
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/223818
Reviewed-by: Joe Tsai <joetsai@google.com>
2020-03-18 05:27:34 +00:00
..
benchmarks all: upgrade protobuf to v3.11.4 2020-03-13 19:49:20 +00:00
cmd reflect/protoregistry: avoid deadlock in registration 2020-03-05 17:35:16 +00:00
conformance all: upgrade protobuf to v3.11.4 2020-03-13 19:49:20 +00:00
descfmt internal: improve use of detrand in descfmt and errors 2019-09-09 18:30:00 +00:00
descopts
detrand internal: improve use of detrand in descfmt and errors 2019-09-09 18:30:00 +00:00
encoding internal/encoding/messageset: don't modify input data when unmarshaling 2020-03-18 05:27:34 +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 proto, internal/impl: make wire output more consistent with v1 2019-11-12 20:59:03 +00:00
filedesc all: trivial formatting changes 2020-02-25 21:59:54 +00:00
filetype reflect/protoregistry: add (*Types).Register{Message,Enum,Extension} 2019-10-31 16:23:42 +00:00
flags all: add a test for copyright headers 2020-02-21 18:41:46 +00:00
fuzz all: rename IsInitialized as CheckInitialized 2020-02-20 20:45:40 +00:00
fuzztest internal/fuzztest: set cap to len on test byte slice 2020-02-05 22:46:04 +00:00
genname internal/genname: centralize the definitions for generated names 2019-12-09 22:57:38 +00:00
impl internal/impl: remove Export.ExtensionDescFromType 2020-03-13 23:34:19 +00:00
mapsort internal/testprotos/legacy: rename and regenerate 2020-01-12 08:13:18 +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 compiler/protogen, internal/strs, internal/impl: expose enum Go name derivation 2019-08-26 17:49:17 +00:00
testprotos all: upgrade protobuf to v3.11.4 2020-03-13 19:49:20 +00:00
version internal/version: move version information to internal package 2020-03-13 19:57:50 +00:00
weakdeps internal/weakdeps: put APIv1 weak dependency behind a build constraint 2020-02-14 21:08:34 +00:00