From: James Jones Date: Wed, 3 Aug 2022 13:42:06 +0000 (-0500) Subject: Annotate false positive (CID #1506689) (#4630) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce6848234862485404b0262613b0678f5f1fa96d;p=thirdparty%2Ffreeradius-server.git Annotate false positive (CID #1506689) (#4630) fr_redis_tuple_from_map() does check for error return from tmpl_print(), so by the time talloc_bstrndup() is called, key_buf should be initialized. --- diff --git a/src/lib/redis/redis.c b/src/lib/redis/redis.c index 6ba54f79e1e..2ab8f90817b 100644 --- a/src/lib/redis/redis.c +++ b/src/lib/redis/redis.c @@ -470,6 +470,7 @@ int fr_redis_tuple_from_map(TALLOC_CTX *pool, char const *out[], size_t out_len[ return -1; } key_len = (size_t)slen; + /* coverity[uninit_use_in_call] */ key = talloc_bstrndup(pool, key_buf, key_len); if (!key) return -1;