In versions before 1.1 of the Eclipse Paho MQTT C Client, the client does not check rem_len size in readpacket.
eclipse paho mqtt c\\/c\\+\\+ client