• Clayton Coleman's avatar
    Add a defensive sanity check to protobuf marshal · eea748b1
    Clayton Coleman authored
    This prevents programmer error from resulting in objects serialized to
    the wire that are incorrectly designed. The normal path guards against
    this, but the runtime.Unknown NestedMarshalTo fast path (which avoids an
    allocation) doesn't have the same defensive guard.
    eea748b1
types_proto.go 1.86 KB