From: James Jones Date: Mon, 12 Sep 2022 23:35:29 +0000 (-0500) Subject: one more sbuff_tests.c annotation (CID #1504019) (#4699) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7b9af618985f82d6a2e02be19cc99edae0e2e78;p=thirdparty%2Ffreeradius-server.git one more sbuff_tests.c annotation (CID #1504019) (#4699) Missed onefr_sbuff_out_bstrncpy_until() that coverity doesn't realize will always put *something* in the sbuff --- diff --git a/src/lib/util/sbuff_tests.c b/src/lib/util/sbuff_tests.c index de82955d502..0d569774535 100644 --- a/src/lib/util/sbuff_tests.c +++ b/src/lib/util/sbuff_tests.c @@ -727,6 +727,7 @@ static void test_eof_terminal(void) slen = fr_sbuff_out_bstrncpy_until(&FR_SBUFF_OUT(out, sizeof(out)), &sbuff, SIZE_MAX, &tt_eof, NULL); TEST_CHECK(slen == 3); + /* coverity[uninit_use_in_call] */ TEST_CHECK_STRCMP(out, "foo"); fr_sbuff_advance(&sbuff, 1); /* Advance past comma */