mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-26 09:35:33 +00:00
d3874051d7
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>