1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 10:52:44 +01:00
RIOT/sys/net/application_layer/nanocoap
Benjamin Valentin 0fa04a3d57 nanocoap: prevent integer underflow in coap_opt_put_uri_pathquery()
If uri contains no path but only a query "?foo=bar" `len` would underflow.
Fix this by detecting if there is no path.

Reported by @Yu3H0
2023-10-20 12:59:42 +02:00
..
cache.c gcoap: reflect truncation with caching 2022-05-13 12:14:55 +02:00
Kconfig nanocoap: homogenize name of the module 2023-06-08 16:29:12 +02:00
link_format.c nanocoap_link_format: fix off-by-one error 2023-02-23 16:34:56 +01:00
Makefile sys/net/nanocoap: use submodules 2017-12-01 12:55:45 +01:00
Makefile.include sys/net/nanocoap: configure DTLS buffer 2023-08-21 17:21:12 +02:00
nanocoap.c nanocoap: prevent integer underflow in coap_opt_put_uri_pathquery() 2023-10-20 12:59:42 +02:00
sock.c nanocoap: homogenize name of the module 2023-06-08 16:29:12 +02:00
vfs.c nanocoap: homogenize name of the module 2023-06-08 16:29:12 +02:00