diff options
author | Eyal Itkin <eyalit@checkpoint.com> | 2020-04-02 07:26:35 -0400 |
---|---|---|
committer | Carlos O'Donell <carlos@redhat.com> | 2020-04-03 07:20:56 -0400 |
commit | 6310d570bf20348135d09e1f9de84a9ae7d06f83 (patch) | |
tree | 62dc48f64b4dc824714690092f7baa4e146ce214 /sysdeps/htl/pt-destroy-specific.c | |
parent | 1c50d23a20f7b964bc5358dcffbb3623170b6773 (diff) | |
download | glibc-6310d570bf20348135d09e1f9de84a9ae7d06f83.tar.gz glibc-6310d570bf20348135d09e1f9de84a9ae7d06f83.tar.xz 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 'sysdeps/htl/pt-destroy-specific.c')
0 files changed, 0 insertions, 0 deletions