Module Name: src Committed By: kamil Date: Wed Apr 4 23:53:26 UTC 2018
Modified Files: src/tests/usr.bin/c++: Makefile Added Files: src/tests/usr.bin/c++: t_asan_double_free.sh t_asan_global_buffer_overflow.sh t_asan_heap_overflow.sh t_asan_off_by_one.sh t_asan_uaf.sh Log Message: Add new ATF tests for Address Sanitzier (ASan) Add new C and C++ tests: - t_asan_double_free - t_asan_global_buffer_overflow - t_asan_heap_overflow - t_asan_off_by_one - t_asan_uaf Each tests checks: - regular build - 32-bit - PIC - PIE - profile These tests require paxctl(8) to disable ASLR in order to work in a predictable way. This is especially true for all !regular builds with additional compiler flags. There are no static variations of these tests as this mode is not supported in upstream ASan. Enable these tests on amd64 and i386. This is part two patch, adding the remaining C++ changes. Patch submitted by <Siddharth Muralee> Additional polishing by myself. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/tests/usr.bin/c++/Makefile cvs rdiff -u -r0 -r1.1 src/tests/usr.bin/c++/t_asan_double_free.sh \ src/tests/usr.bin/c++/t_asan_global_buffer_overflow.sh \ src/tests/usr.bin/c++/t_asan_heap_overflow.sh \ src/tests/usr.bin/c++/t_asan_off_by_one.sh \ src/tests/usr.bin/c++/t_asan_uaf.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.