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.
It is possible that one of the two calls to realloc() succeeded, resulting in a memory leak. Also, the one that succeeded will leave a now invalid pointer behind in propertyset->keys or propertyset->values, which will result in undefined behavior when the property set is cleaned up by pb_release().
In this code:
It is possible that one of the two calls to
realloc()
succeeded, resulting in a memory leak. Also, the one that succeeded will leave a now invalid pointer behind inpropertyset->keys
orpropertyset->values
, which will result in undefined behavior when the property set is cleaned up bypb_release()
.