aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/basic/memory.x
diff options
context:
space:
mode:
authorGasper Stukelj <[email protected]>2024-07-28 21:50:52 +0200
committerGasper Stukelj <[email protected]>2024-07-29 23:24:44 +0200
commitc5d077a2c62edb4d704fc64dc6eeea5a3ed0dcb0 (patch)
tree04b018b0a10376eb1a7892425b40785b4053c348 /docs/examples/basic/memory.x
parente54c753537b4b12c3d2fd03ad8e8ba9eaaded06e (diff)
embassy-net: dns: bound the dns_servers slice
`smoltcp::socket::dns::Socket::update_servers()` will panic if a slice exceeding a fixed length is passed to it. This is can be especially inconvenient when using DHCP config. Avoid panicking by using at most `DNS_MAX_SERVER_COUNT` DNS servers from the config.
Diffstat (limited to 'docs/examples/basic/memory.x')
0 files changed, 0 insertions, 0 deletions