From: James Jones Date: Thu, 25 Aug 2022 20:46:03 +0000 (-0500) Subject: Annotate memmcpy() used to copy fr_pair_t (CID #1508479) (#4695) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2511ccfd25cac1a6a7bbcd9b0f5f63ea2118347d;p=thirdparty%2Ffreeradius-server.git Annotate memmcpy() used to copy fr_pair_t (CID #1508479) (#4695) --- diff --git a/src/modules/rlm_detail/rlm_detail.c b/src/modules/rlm_detail/rlm_detail.c index e3af857c200..6ada03e519e 100644 --- a/src/modules/rlm_detail/rlm_detail.c +++ b/src/modules/rlm_detail/rlm_detail.c @@ -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);