]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix case-sensitivity bug in zone filename token-parsing
authorAram Sargsyan <aram@isc.org>
Mon, 13 Apr 2026 11:38:19 +0000 (11:38 +0000)
committerArаm Sаrgsyаn <aram@isc.org>
Thu, 16 Apr 2026 11:37:02 +0000 (11:37 +0000)
commitd2f7b969fe5f9f3e955068b789ab1ee4fc620c81
treefe544aa455203d72b957a2e26a2847bfa7599167
parent07c8cddb4c58552a1829c9d5472d03973044ceac
Fix case-sensitivity bug in zone filename token-parsing

The setfilename() function uses case-insensitive strcasestr() when
matching the possible tokens, but then one of the token parsers
uses case-sensitive INSIST checks which can assert when, for example,
matching '%X' and INSIST only accepts '%x'.

The case-insensitivity is documented, which means it's the parser
that needs to be fixed, not the matcher.

Convert the character to lowercase before checking the token's
validity.
lib/dns/zoneproperties.c