From 8dfd95546377f20d4b9f7556a8268dbbacb9d575 Mon Sep 17 00:00:00 2001
From: barracuda156 <vital.had@gmail.com>
Date: Tue, 4 Jun 2024 12:43:24 +0800
Subject: [PATCH] crypto_transform.c: fix memcpy

---
 .../builtin_plugins/cryptographic/src/crypto_transform.c        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git src/security/builtin_plugins/cryptographic/src/crypto_transform.c src/security/builtin_plugins/cryptographic/src/crypto_transform.c
index 08a8136c..99ab4705 100644
--- src/security/builtin_plugins/cryptographic/src/crypto_transform.c
+++ src/security/builtin_plugins/cryptographic/src/crypto_transform.c
@@ -331,7 +331,7 @@ static bool read_submsg_header (tainted_input_buffer_t *input, uint8_t smid, dds
   // silly C can't deal with assignment to *submsg_view in any way because of endp
   // memcpy to the rescue!
   // coverity[store_writes_const_field]
-  memcpy (submsg_view, &(tainted_input_buffer_t){ .ptr = input->ptr, .endp = input->ptr + hdr->octetsToNextHeader }, sizeof (*submsg_view));
+  memcpy (submsg_view, (&(tainted_input_buffer_t){ .ptr = input->ptr, .endp = input->ptr + hdr->octetsToNextHeader }), sizeof (*submsg_view));
   input->ptr += hdr->octetsToNextHeader;
   return true;
 }
