paho.mqtt.embedded-c icon indicating copy to clipboard operation
paho.mqtt.embedded-c copied to clipboard

fix MQTTDeserialize_unsubscribe didn't judge maxcount or may cause memory access violation

Open brucemaclin opened this issue 11 months ago • 1 comments

an invalid unsubscribe packet in base64 format "rS8BAAABAAAAAAAADGlvdC0wNDBhMDFrcARtcXR0BmlvdGh1YghhbGl5dW5jcwNjbw=="

if set maxcount to 1,and init topicFilters with size 1,*count will bigger than maxcount,topicFilters[*count] cause memory access violation.

brucemaclin avatar Mar 02 '24 07:03 brucemaclin

We'll also need a UT for validation.

CIPop avatar Mar 04 '24 19:03 CIPop