]> git.ipfire.org Git - thirdparty/bind9.git/commit
add a system test for $GENERATE with an integer overflow
authorEvan Hunt <each@isc.org>
Fri, 4 Mar 2022 23:19:52 +0000 (15:19 -0800)
committerMark Andrews <marka@isc.org>
Fri, 1 Apr 2022 07:56:52 +0000 (07:56 +0000)
commitbd814b79d4a87faf80e306d705a6a9cc0ae08c11
tree3e9c4070bed6c7a430753964a181120e344bf0a0
parent2261c853b521e60500ed355961646bc2d3b0ed06
add a system test for $GENERATE with an integer overflow

the line "$GENERATE 19-28/2147483645 $ CNAME x" should generate
a single CNAME with the owner "19.example.com", but prior to the
overflow bug it generated several CNAMEs, half of them with large
negative values.

we now test for the bugfix by using "named-checkzone -D" and
grepping for a single CNAME in the output.
bin/tests/system/checkzone/tests.sh
bin/tests/system/checkzone/zones/generate-overflow.db [new file with mode: 0644]