zephyr/subsys/net/lib/dns
Stephanos Ioannidis 8fe855f166 net: dns: Check query index in dns_read
This commit adds a check, in the `dns_read` function, before
dereferencing the query index returned by the `dns_validate_msg`
function.

This fixes the warnings generated by the GCC 12 such as:

  error: array subscript -1 is below array bounds of
  'struct dns_pending_query[5]' [-Werror=array-bounds]

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2022-08-09 14:20:28 +02:00
..
CMakeLists.txt net: dns: dns-sd: support dns service discovery 2020-11-09 16:15:02 -08:00
Kconfig kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
dns_internal.h subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
dns_pack.c net: dns: Remove unused variable 2022-06-13 12:11:54 +02:00
dns_pack.h subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
dns_sd.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
dns_sd.h subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
llmnr_responder.c all: logging: Remove log_strdup function 2022-06-23 13:42:23 +02:00
mdns_responder.c all: logging: Remove log_strdup function 2022-06-23 13:42:23 +02:00
resolve.c net: dns: Check query index in dns_read 2022-08-09 14:20:28 +02:00