mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
06d572c2fc
As per Section 5.2.1 of the MQTT-SN specification, the MQTT-SN length header is either 1- or 3-octet long. If it is 3-octet long then the first octet is 0x01. The asymcute implementation currently only checks that the incoming packet is at least 2-octet long before attempting to parse it (MIN_PKT_LEN). However, if the first octet is 0x01 the packet must be more than 3 octet long in order to be valid. Since asymcute does not check this it reads one octet beyond the packet data for a 2-octet packet where the first octet has the value 0x01. This commit fixes this issue by adding an additional sanity check to _len_get. |
||
---|---|---|
.. | ||
asymcute | ||
cord | ||
dhcpv6 | ||
dns | ||
emcute | ||
gcoap | ||
nanocoap | ||
sntp | ||
sock_dns | ||
sock_dns_mock | ||
sock_dodtls | ||
telnet | ||
uhcp | ||
doc.txt | ||
Kconfig | ||
Kconfig.coap |