lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #52345] MQTT buffer length check seems wrong


From: David Bourgeois
Subject: [lwip-devel] [bug #52345] MQTT buffer length check seems wrong
Date: Mon, 18 Dec 2017 05:13:16 -0500 (EST)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36

Follow-up Comment #4, bug #52345 (project lwip):

Sorry for the late answer. We still found a case where this fix doesn't work.
When the packet sent has no payload and a QoS of 0, then the last byte of the
packet is actually the last byte of the payload which isn't null terminated.
So the test will always fail in this case and there's no way to add the null
termination for the callback.

So here the fix should not only consider the test but also deal with the
buffer size.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?52345>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]