From a0f5a5e3c5c6dd29b18bc06fea0d02ae7fc24ac9 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 26 May 2016 11:57:16 +1000 Subject: [PATCH] 4372. [bug] Address undefined behaviour in libt_api. [RT #42480] --- CHANGES | 2 ++ lib/tests/t_api.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 849f5716af..08ff54979f 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 9c908c1a53..4f1b286feb 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; }