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
..
2024-10-18 23:52:35 +02:00
2023-02-01 23:25:22 +01:00
2022-11-22 13:39:35 +01:00
2021-08-13 19:50:38 +02:00
2024-05-31 12:04:48 +02:00
2024-11-19 15:23:03 +01:00
2023-01-17 11:30:59 +01:00
2024-02-07 10:08:16 -05:00
2022-12-11 23:34:09 +01:00
2022-09-29 11:25:56 +02:00
2024-05-29 11:32:22 +02:00
2021-02-16 18:18:21 +01:00
2021-08-13 19:50:38 +02:00
2022-06-30 09:48:45 +02:00
2022-09-29 10:48:49 +02:00
2022-05-24 13:02:10 +02:00
2024-05-22 18:53:37 +02:00
2022-04-14 09:23:27 +02:00
2023-10-16 12:17:48 +02:00
2024-03-21 14:26:45 +01:00
2022-11-22 13:39:35 +01:00
2021-08-13 19:50:38 +02:00
2022-09-14 15:05:25 +02:00
2024-02-08 10:14:24 -05:00
2022-12-07 22:26:51 +01:00
2021-10-08 12:15:53 +02:00
2023-03-02 09:16:22 +01:00
2023-10-16 12:17:48 +02:00
2021-08-13 19:50:38 +02:00
2021-08-13 19:50:38 +02:00
2021-06-08 14:30:40 +02:00
2023-02-22 16:47:14 +01:00
2024-08-21 17:49:48 +02:00
2024-07-15 11:25:30 +02:00
2021-08-13 19:50:38 +02:00
2022-11-22 13:39:35 +01:00
2023-05-31 16:31:20 +02:00
2021-08-13 19:50:38 +02:00
2021-08-13 19:50:38 +02:00
2024-04-29 11:49:33 +02:00
2023-08-18 20:42:43 +02:00
2021-08-13 19:50:38 +02:00
2023-06-12 13:54:06 +02:00
2022-11-22 13:39:35 +01:00
2020-12-18 10:22:25 +01:00
2024-12-12 14:28:28 +01:00
2022-06-08 17:19:03 +02:00
2024-11-08 20:03:37 +00:00
2021-06-18 00:13:08 +02:00
2021-07-09 11:35:19 +02:00
2023-12-15 16:50:21 +01:00
2024-04-29 11:49:33 +02:00
2021-07-05 10:32:50 +02:00
2021-08-13 19:50:38 +02:00
2021-08-13 19:50:38 +02:00
2020-12-14 09:00:26 +01:00
2022-05-24 13:02:10 +02:00
2023-10-16 12:17:48 +02:00
2022-09-14 15:05:25 +02:00
2021-07-08 09:40:02 +02:00
2023-01-13 11:08:22 +01:00
2022-03-08 13:35:32 +01:00
2023-08-18 20:42:43 +02:00
2023-08-19 23:23:10 +02:00