[PATCH] Add tests for Safe-Linking
Eyal Itkin
eyal.itkin@gmail.com
Thu Apr 2 11:45:10 GMT 2020
Hello,
As promised, I converted my test cases and added a new test case
called: tst-safe-linking.
This test checks that Safe-Linking works, by testing the 3 main flows:
1. tcache protection
2. fastbin protection
3. 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.
The test was tested on an intel 32 bit and 64 bit setup, and it never
failed even after dozens of executions on each setup.
Best Regards,
Eyal.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-tests-for-Safe-Linking.patch
Type: application/octet-stream
Size: 6981 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20200402/0f057dbc/attachment.obj>
More information about the Libc-alpha
mailing list