See this discussion for background, also MQTT spec V3.1.1 section 2.2.3.
This may be academic as its main impact is if the topic field is long. This is to record the existence of the issue.
The current encoding stores Remaining Length in a byte. It should be stored as a Variable Byte Integer as per .publish. This will cause a failure if Remaining Length is greater than 127, therefore imposing a limit on the length of the topic field.
I can submit a PR if the maintainers think this is worth fixing.
See this discussion for background, also MQTT spec V3.1.1 section 2.2.3.
This may be academic as its main impact is if the
topicfield is long. This is to record the existence of the issue.The current encoding stores
Remaining Lengthin a byte. It should be stored as a Variable Byte Integer as per .publish. This will cause a failure ifRemaining Lengthis greater than 127, therefore imposing a limit on the length of thetopicfield.I can submit a PR if the maintainers think this is worth fixing.