zephyr/subsys/net/lib/dns
Robert Lubos 027a19a565 net: lib: dns_sd: Fix buffer sizes on query processing
A few issues were identified with DNS_SD segment buffers, making it work
"by chance" (depending on memory layout):

- size check in dns_sd_query_extract() did not take NULL termination
  into account, and in result could overflow provided buffer
- the proto_buf in send_sd_response() can either be used to parse
  protocol or domain, depending on number of segments in the query.
  It should therefore be large enough to hold either.
- Similarily, instance_buf should be able to hold
  DNS_SD_INSTANCE_MAX_SIZE, not DNS_SD_SERVICE_MAX_SIZE.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2024-06-24 12:42:16 -04:00
..
CMakeLists.txt net: dns: Allow using resolver and responder at the same time 2024-06-03 09:49:01 +02:00
dispatcher.c net: dns: Allow using resolver and responder at the same time 2024-06-03 09:49:01 +02:00
dns_cache.c net: dns: Add DNS cache for improved performance 2024-03-15 08:37:29 +00:00
dns_cache.h net: dns: Add DNS cache for improved performance 2024-03-15 08:37:29 +00:00
dns_internal.h subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
dns_pack.c net: dns: Add helper for figuring out the query type 2024-06-03 09:49:01 +02:00
dns_pack.h net: dns: Add helper for figuring out the query type 2024-06-03 09:49:01 +02:00
dns_sd.c net: lib: dns_sd: Fix buffer sizes on query processing 2024-06-24 12:42:16 -04:00
dns_sd.h net: dns: remove deprecated function 2024-06-18 14:32:56 -04:00
Kconfig net: dns: Allow using resolver and responder at the same time 2024-06-03 09:49:01 +02:00
llmnr_responder.c net: dns: llmnr_responder: Fix uinit variable 2024-06-24 12:41:06 -04:00
mdns_responder.c net: lib: dns_sd: Fix buffer sizes on query processing 2024-06-24 12:42:16 -04:00
resolve.c net: lib: dns: Fix error code returned when socket creation failed 2024-06-21 08:44:29 -04:00