Broken string serialization

Options
In the Version 4.1.4.0 (27. April 2020 - rev5468)
A new bug was introduced when sending a string with characters bigger than 1 byte via RPC
I don't have access to the dll but probably you are sending the string length instead of the byte length for the serialization
ArgumentOutOfRangeException: ArgRange_StringRange
Parameter name: charCount
System.Text.UTF8Encoding.GetBytes (System.String s, Int32 charIndex, Int32 charCount, System.Byte[] bytes, Int32 byteIndex) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Text/UTF8Encoding.cs:388)
ExitGames.Client.Photon.Protocol16.SerializeString (ExitGames.Client.Photon.StreamBuffer stream, System.String value, Boolean setType)
ExitGames.Client.Photon.Protocol16.Serialize (


Comments