mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
66fe083d9b
The CoAP block option gets written twice: First a 'dummy' value is written by `coap_opt_add_block2()`, later this gets overwritten by the real option value by coap_block2_finish(). The problem arises when the size of the option changes. If the option ends up smaller than the dummy, we have garbage bytes after the real option value, corrupting the packet. To mitigate this, always write at least one option byte (which will be a 0 byte) to ensure the dummy data is overwritten. fixes #20686 |
||
---|---|---|
.. | ||
asymcute | ||
cord | ||
dhcpv6 | ||
dns | ||
emcute | ||
gcoap | ||
nanocoap | ||
sntp | ||
sock_dns | ||
sock_dns_mock | ||
sock_dodtls | ||
telnet | ||
uhcp | ||
doc.txt | ||
Kconfig | ||
Kconfig.coap |