]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix parser test (missing string termination)
authorOndřej Surý <ondrej@isc.org>
Wed, 5 Nov 2025 11:39:43 +0000 (12:39 +0100)
committerColin Vidal <colin@isc.org>
Wed, 5 Nov 2025 12:06:38 +0000 (13:06 +0100)
commit47328cc1f8d6ea2561b5ddce7394d72f81689a93
tree6791e1a63ea4fa22ac4cf9670cdbc347e576e7c0
parent7f1d36db22040a032100b8f451527b642ebdcede
Fix parser test (missing string termination)

Parser test could crash because the `dumpb2` buffer hasn't explicit C
NULL string termination after dumping the configuration tree in it.
`cfg_printx` does not doing this by default.

Fix the test by comparing only the strings written with strncmp.
tests/isccfg/parser_test.c