]> git.ipfire.org Git - thirdparty/bind9.git/commit
fix: dev: Validate -l and -L numeric arguments in named-checkzone
authorOndřej Surý <ondrej@isc.org>
Wed, 29 Apr 2026 15:25:53 +0000 (17:25 +0200)
committerOndřej Surý <ondrej@isc.org>
Wed, 29 Apr 2026 15:25:53 +0000 (17:25 +0200)
commit1064d11af24cd9626453273d7ce830b87aa36291
tree7ae590ea3065c7e5d063cdcfb48ccb2d19ef8867
parent468b09feb2d9600e3bdf7d81817f8b9adc5a9d54
parent042e86fa846140e42eda8f7d910f97919a08c6a5
fix: dev: Validate -l and -L numeric arguments in named-checkzone

named-checkzone and named-compilezone parsed the -l (max TTL) and -L
(source serial) arguments with strtol(), so a negative value such as
-1 silently became UINT32_MAX and out-of-range values were truncated
to 32 bits without warning; -l in particular appeared to cap TTLs but
no longer enforced anything. Both flags now go through isc_parse_uint32()
and reject any value that is not a valid 32-bit unsigned integer.

Merge branch 'ondrej/named-checkzone-strtol-truncation' into 'main'

See merge request isc-projects/bind9!11900