]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Annotate memmcpy() used to copy fr_pair_t (CID #1508479) (#4695)
authorJames Jones <jejones3141@gmail.com>
Thu, 25 Aug 2022 20:46:03 +0000 (15:46 -0500)
committerGitHub <noreply@github.com>
Thu, 25 Aug 2022 20:46:03 +0000 (16:46 -0400)
src/modules/rlm_detail/rlm_detail.c

index e3af857c200bffd94ff2b29facab6cdae6b35bba..6ada03e519e8f312e44495737adb50dea3bfa028 100644 (file)
@@ -216,6 +216,7 @@ static void detail_fr_pair_fprint(TALLOC_CTX *ctx, FILE *out, fr_pair_t const *s
        vp = talloc(ctx, fr_pair_t);
        if (!vp) return;
 
+       /* coverity[store_writes_const_field] */
        memcpy(vp, stacked, sizeof(*vp));
        vp->op = T_OP_EQ;
        fr_pair_fprint(out, vp);