summaryrefslogtreecommitdiff
path: root/malloc/Makefile
diff options
context:
space:
mode:
authorEyal Itkin <eyalit@checkpoint.com>2020-04-02 07:26:35 -0400
committerCarlos O'Donell <carlos@redhat.com>2020-04-03 07:20:56 -0400
commit6310d570bf20348135d09e1f9de84a9ae7d06f83 (patch)
tree62dc48f64b4dc824714690092f7baa4e146ce214 /malloc/Makefile
parent1c50d23a20f7b964bc5358dcffbb3623170b6773 (diff)
downloadglibc-6310d570bf20348135d09e1f9de84a9ae7d06f83.tar
glibc-6310d570bf20348135d09e1f9de84a9ae7d06f83.tar.gz
glibc-6310d570bf20348135d09e1f9de84a9ae7d06f83.tar.bz2
glibc-6310d570bf20348135d09e1f9de84a9ae7d06f83.zip
Add tests for Safe-Linking
Adding the test "tst-safe-linking" for testing that Safe-Linking works as expected. The test checks these 3 main flows: * tcache protection * fastbin protection * malloc_consolidate() correctness As there is a random chance of 1/16 that of the alignment will remain correct, the test checks each flow up to 10 times, using different random values for the pointer corruption. As a result, the chance for a false failure of a given tested flow is 2**(-40), thus highly unlikely. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'malloc/Makefile')
-rw-r--r--malloc/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/malloc/Makefile b/malloc/Makefile
index 984045b5b9..e22cbde22d 100644
--- a/malloc/Makefile
+++ b/malloc/Makefile
@@ -39,6 +39,7 @@ tests := mallocbug tst-malloc tst-valloc tst-calloc tst-obstack \
tst-malloc-too-large \
tst-malloc-stats-cancellation \
tst-tcfree1 tst-tcfree2 tst-tcfree3 \
+ tst-safe-linking \
tests-static := \
tst-interpose-static-nothread \