From 7dd0351254fcb0583ea531d1703d5b0207ed88e0 Mon Sep 17 00:00:00 2001 From: "Pavel I. Kryukov" Date: Sat, 14 Dec 2019 15:20:26 +0300 Subject: [PATCH] Wrap few more functions in side channel attack tests [SGT's note: Pavel Kryukov says he came across these while setting up CI runs of testsc. Two of the three guarded functions are obvious variants on ones we're already guarding; I hadn't heard of cfree before, but apparently it's an alternate form of ordinary free() from an obsolete standard, whose glibc man page says 'never use it'.] --- test/sclog/sclog.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/sclog/sclog.c b/test/sclog/sclog.c index 3512fade..39b7b5d6 100644 --- a/test/sclog/sclog.c +++ b/test/sclog/sclog.c @@ -539,9 +539,12 @@ static void load_module( * need to add more aliases here to stop the test failing. */ TRY_WRAP("__GI___libc_malloc", wrap_malloc_pre, wrap_alloc_post); + TRY_WRAP("__libc_malloc", wrap_malloc_pre, wrap_alloc_post); TRY_WRAP("__GI___libc_realloc", wrap_realloc_pre, wrap_alloc_post); TRY_WRAP("__GI___libc_free", wrap_free_pre, unpause_post); TRY_WRAP("__memset_sse2_unaligned", wrap_memset_pre, unpause_post); + TRY_WRAP("__memset_sse2", wrap_memset_pre, unpause_post); + TRY_WRAP("cfree", wrap_free_pre, unpause_post); } }