eclipse / tahu

Eclipse Tahu addresses the existence of legacy SCADA/DCS/ICS protocols and infrastructures and provides a much-needed definition of how best to apply MQTT into these existing industrial operational environments.
https://eclipse.org/tahu
Eclipse Public License 2.0
216 stars 123 forks source link

Python string array unpacking bug #342

Closed rosstitmarsh closed 5 months ago

rosstitmarsh commented 6 months ago

This is a bug in Python client library.

The packing function for string arrays does what the spec says, terminate each string with a null byte and concatenate.

However the unpacking funtion is incorrect, it treats the null byte as a delimiter resulting an array with an extra empty string at the end.