about summary refs log tree commit diff
path: root/math/libm-test-fmax.inc
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 /math/libm-test-fmax.inc
parent1c50d23a20f7b964bc5358dcffbb3623170b6773 (diff)
downloadglibc-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 'math/libm-test-fmax.inc')
0 files changed, 0 insertions, 0 deletions