1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 04:52:54 +01:00
RIOT/sys/include/net
Marian Buschsieweke 7a738d0e0b
sys/net/nanocoap: fix buffer overflow in separate response handling
When RFC 8974 support (module `nanocoap_token_ext`) is in use, the
request token may be longer than the buffer in the separate response
context is large. This adds a check to not overflow the buffer.

Sadly, this is an API change: Preparing the separate response context
can actually fail, so we need to report this with a return value.

The example application has been adapted to only proceed if the separate
reply context could have been prepared, and rather directly emit a
reset message if the token exceeds the static buffer.

Co-authored-by: benpicco <benpicco@googlemail.com>
2024-12-12 14:28:28 +01:00
..
bluetil
cord cord/doc: Update references to RFC 9176 2024-10-18 23:52:35 +02:00
dhcpv6 sys/net/dhcpv6: let dhcpv6_client_req_ia_pd() return error 2023-02-01 23:25:22 +01:00
dns includes/net: replace "kernel_defines.h" 2022-11-22 13:39:35 +01:00
ethernet
fib
gcoap gcoap/forward_proxy: reply from request destination address 2024-05-31 12:04:48 +02:00
gnrc sys/net/gnrc_pktbuf: move CANARY to header file 2024-11-19 15:23:03 +01:00
iana
ieee802154 ieee802154/radio: fix blocking cca function 2023-01-17 11:30:59 +01:00
ipv4 sys/net/ipv4: add IPV4_ADDR_INIT() macro 2024-02-07 10:08:16 -05:00
ipv6 sys/net/ipv6: add ipv6_prefix_from_str() 2022-12-11 23:34:09 +01:00
lorawan
nanocoap nanocoap_fs: add nanoCoAP as VFS backend 2024-05-29 11:32:22 +02:00
netstats
ppp
rpl
sixlowpan
skald
sock sys/include/net/sock: move config to separate header 2024-05-22 18:53:37 +02:00
af.h
arp.h
asymcute.h tree-wide: fix typos in doc and comments 2023-10-16 12:17:48 +02:00
ble.h
coap.h sys/net/coap: cast in non-config define 2024-03-21 14:26:45 +01:00
credman.h includes/net: replace "kernel_defines.h" 2022-11-22 13:39:35 +01:00
csma_sender.h
dhcpv6.h
dns_mock.h treewide: make use of new IPv4 static init macro 2024-02-08 10:14:24 -05:00
dns.h sys/dns: select appropriate address family if AF_UNSPEC 2022-12-07 22:26:51 +01:00
dsm.h
dtls.h dtls, tinydtls: Raise default number of connections 2023-03-02 09:16:22 +01:00
eddystone.h
emcute.h tree-wide: fix typos in doc and comments 2023-10-16 12:17:48 +02:00
ethernet.h
ethertype.h
eui48.h
eui64.h
eui_provider.h
fib.h fib: document unused state 2023-02-22 16:47:14 +01:00
gcoap.h sys/gcoap: add public function to find a resource by path 2024-08-21 17:49:48 +02:00
gnrc.h doc: fix links to GNRC master thesis 2024-07-15 11:25:30 +02:00
icmp.h
icmpv6.h
ieee802154_security.h sys/include: remove kernel_defines.h where not needed 2022-11-22 13:39:35 +01:00
ieee802154.h ieee802154: add DSME configs 2023-05-31 16:31:20 +02:00
inet_csum.h
ipv4.h
ipv6.h
l2filter.h l2filter: mark module as experimental 2024-04-29 11:49:33 +02:00
l2scan_list.h tests/net: add test for l2scan list module 2023-08-18 20:42:43 +02:00
l2util.h
lora.h drivers/sx127x: reduce use of floats 2023-06-12 13:54:06 +02:00
loramac.h includes/net: replace "kernel_defines.h" 2022-11-22 13:39:35 +01:00
mqttsn.h
nanocoap_sock.h sys/net/nanocoap: fix buffer overflow in separate response handling 2024-12-12 14:28:28 +01:00
nanocoap_vfs.h
nanocoap.h Merge pull request #20945 from maribu/sys/net/gcoap/replace-super-insane-hack-with-less-insane-hack 2024-11-08 20:03:37 +00:00
ndp.h
netdev_test.h
netif.h sys/net/netif: constify netif access 2023-12-15 16:50:21 +01:00
netopt.h netopt: mark l2filter options as experimental 2024-04-29 11:49:33 +02:00
netstats.h
ntp_packet.h
packet.h
ppptype.h
protnum.h
sixlowpan.h
skald.h
sntp.h
sock.h tree-wide: fix typos in doc and comments 2023-10-16 12:17:48 +02:00
someip.h
tcp.h
telnet.h doc: sort all stdio implementations into sys_stdio group 2023-01-13 11:08:22 +01:00
udp.h
uhcp.h
utils.h
wifi_scan_list.h net: add wifi scan list as wrapper around l2scan list 2023-08-18 20:42:43 +02:00
wifi.h net: add basic Wi-Fi definitions 2023-08-19 23:23:10 +02:00
zep.h