Improve functions parameter validation in lib/dns/message.c to prevent accessing the -1 index of an array
The REQUIRE(VALID_SECTION(section))
checks in the dns_message_findname()
and dns_message_sectiontotext()
functions allow the section variable to be -1, which is not a valid array index.
The checks should be replaced by REQUIRE(VALID_NAMED_SECTION(section))
.