From: Mark Andrews Date: Thu, 26 May 2016 01:57:16 +0000 (+1000) Subject: 4372. [bug] Address undefined behaviour in libt_api. [RT #42480] X-Git-Tag: v9.11.0a3~48 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=a0f5a5e3c5c6dd29b18bc06fea0d02ae7fc24ac9;p=thirdparty%2Fbind9.git 4372. [bug] Address undefined behaviour in libt_api. [RT #42480] --- diff --git a/CHANGES b/CHANGES index 849f5716af5..08ff54979fb 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,5 @@ +4372. [bug] Address undefined behaviour in libt_api. [RT #42480] + 4371. [func] New "minimal-any" option reduces the size of UDP responses for qtype ANY by returning a single arbitrarily selected RRset instead of all RRsets. diff --git a/lib/tests/t_api.c b/lib/tests/t_api.c index 9c908c1a53b..4f1b286feb9 100644 --- a/lib/tests/t_api.c +++ b/lib/tests/t_api.c @@ -295,7 +295,7 @@ t_main(int argc, char **argv) tnum = 0; pts = &T_testlist[0]; - while (*pts->pfv != NULL) { + while (pts->pfv != NULL) { if (T_tvec[tnum / 8] & (0x01 << (tnum % 8))) { #ifndef WIN32 if (subprocs) { @@ -841,7 +841,7 @@ t_settests(const testspec_t list[]) { pts = &list[0]; for (tnum = 0; tnum < T_MAXTESTS - 1; pts++, tnum++) { - if (*pts->pfv == NULL) + if (pts->pfv == NULL) break; T_testlist[tnum] = *pts; }