From 8339bd6ff0d0cd7bebb7e45289bee0c12d5b65fe Mon Sep 17 00:00:00 2001 From: Songling Han Date: Fri, 27 Sep 2024 22:17:56 +0000 Subject: [PATCH] revert back to abort() in OQS_MEM_cleanse Signed-off-by: Songling Han --- src/common/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/common.c b/src/common/common.c index cb535880f..8599485a3 100644 --- a/src/common/common.c +++ b/src/common/common.c @@ -270,7 +270,7 @@ OQS_API void OQS_MEM_cleanse(void *ptr, size_t len) { explicit_memset(ptr, 0, len); #elif defined(__STDC_LIB_EXT1__) || defined(OQS_HAVE_MEMSET_S) if (0U < len && memset_s(ptr, (rsize_t)len, 0, (rsize_t)len) != 0) { - return; //abort(); + abort(); } #else typedef void *(*memset_t)(void *, int, size_t);