From: Emma Finn <emma.finn@intel.com>
To: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>
Cc: dev@dpdk.org, kai.ji@intel.com, Emma Finn <emma.finn@intel.com>
Subject: [v2] examples/fips_validation: fix dangling pointer for SHA and SHAKE test
Date: Mon, 9 Mar 2026 10:10:25 +0000 [thread overview]
Message-ID: <20260309101025.958736-1-emma.finn@intel.com> (raw)
In-Reply-To: <20250828092822.2791101-1-emma.finn@intel.com>
Set vector pointer to NULL after free to avoid calling rte_free()
on the same pointer twice in some cases.
Signed-off-by: Emma Finn <emma.finn@intel.com>
---
v2:
* add fix to mct_shake_test
---
examples/fips_validation/main.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/examples/fips_validation/main.c b/examples/fips_validation/main.c
index daf273bc85..2b6d55aa51 100644
--- a/examples/fips_validation/main.c
+++ b/examples/fips_validation/main.c
@@ -2610,7 +2610,7 @@ fips_mct_sha_test(void)
rte_free(md[i].val);
rte_free(vec.pt.val);
-
+ vec.pt.val = NULL;
rte_free(val.val);
return 0;
}
@@ -2698,6 +2698,7 @@ fips_mct_shake_test(void)
rte_free(md.val);
rte_free(vec.pt.val);
+ vec.pt.val = NULL;
rte_free(val.val);
return 0;
}
--
2.43.0
next prev parent reply other threads:[~2026-03-09 10:10 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-28 9:28 [PATCH] examples/fips_validation: fix dangling pointer for SHA test Emma Finn
2025-08-28 9:42 ` [EXTERNAL] " Gowrishankar Muthukrishnan
2025-08-29 10:18 ` Finn, Emma
2025-08-29 10:23 ` Gowrishankar Muthukrishnan
2025-08-29 10:40 ` Finn, Emma
2025-08-29 12:16 ` Gowrishankar Muthukrishnan
2025-08-29 13:14 ` Finn, Emma
2025-10-15 15:53 ` Ji, Kai
2025-10-22 5:22 ` Gowrishankar Muthukrishnan
2025-11-27 16:51 ` Ji, Kai
2026-03-09 10:10 ` Emma Finn [this message]
2026-03-09 10:20 ` [EXTERNAL] [v2] examples/fips_validation: fix dangling pointer for SHA and SHAKE test Gowrishankar Muthukrishnan
2026-03-17 16:29 ` Thomas Monjalon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260309101025.958736-1-emma.finn@intel.com \
--to=emma.finn@intel.com \
--cc=dev@dpdk.org \
--cc=gmuthukrishn@marvell.com \
--cc=kai.ji@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.