Closed tabish121 closed 8 years ago
The MQTT spec defines the strings as UTF8 values encoded with a two byte length value with max size of 65535. The readUTF8 method in MessageSupport reads the value in as a short causes an IndexOutOfBoundsException if the string was larger 32767.
Reference String encodings in the spec: http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718016
The MQTT spec defines the strings as UTF8 values encoded with a two byte length value with max size of 65535. The readUTF8 method in MessageSupport reads the value in as a short causes an IndexOutOfBoundsException if the string was larger 32767.