]> git.ipfire.org Git - thirdparty/bind9.git/commit
Use read number of items instead of raw array size in load_names
authorOndřej Surý <ondrej@isc.org>
Fri, 6 Oct 2023 08:06:36 +0000 (10:06 +0200)
committerOndřej Surý <ondrej@isc.org>
Mon, 9 Oct 2023 19:04:21 +0000 (21:04 +0200)
commit81f48e11e4a6ed1dc30e66ca4d34bd95e40b33be
tree22015b0a9bee819636e7fc2538b52516874276df
parent1bd979167e1b72fb89078ffdd651d6af1398bd15
Use read number of items instead of raw array size in load_names

The load_names benchmark expected the input CSV with domains would fill
the whole item array and it would crash when the number of lines would
be less than that.

Fix the expectations by using the real number or lines read to calculate
the array start and end position for each benchmark thread.
tests/bench/load-names.c