]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolved: increase most label buffers to fit a trailing NUL byte
authorLennart Poettering <lennart@poettering.net>
Mon, 18 Dec 2023 08:42:22 +0000 (09:42 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 18 Dec 2023 09:27:27 +0000 (10:27 +0100)
commitfd7e988700ebd9a557f288f38a385a99b7ba8504
treec6302a8caff661bde2c8b952aab8fc211d64ba46
parentccf695a4cfee97ff33a10ba5357a0e21a54de35e
resolved: increase most label buffers to fit a trailing NUL byte

This is just paranoia. In all these cases we don't really care about the
trailing NUL byte. But if there's space for it dns_label_unescape() is
going to insert it, and that's a good safety strategy.

This is a follow-up to c29c3adefa8cd859f8cb87d9ad62f3d77b7cd102 which
fixed an actual bug, unlike this commit, which is just paranoia.
src/resolve/resolved-dns-dnssec.c
src/resolve/resolved-dns-packet.c
src/resolve/resolved-manager.c
src/shared/dns-domain.c