mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-02-06 09:40:07 +00:00
When merging aberrant messages with legacy Marshal and Unmarshal methods, check for a typed nil source before calling Marshal. Add an aberrant message with Marshal/Unmarshal methods to internal/testprotos/nullable and use it to test the internal/impl support for these methods. Fixes golang/protobuf#1324 Change-Id: Ib6ce85b30b46e3392a226ca6abe411932a371f02 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/321529 Trust: Damien Neil <dneil@google.com> Run-TryBot: Damien Neil <dneil@google.com> Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>