Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src



Module Name:    src
Committed By:   kamil
Date:           Wed Apr  4 23:51:35 UTC 2018

Modified Files:
        src/distrib/sets/lists/tests: mi
        src/tests/usr.bin/cc: Makefile
Added Files:
        src/tests/usr.bin/cc: 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.

Patch submitted by <Siddharth Muralee>
Additional polishing by myself.


To generate a diff of this commit:
cvs rdiff -u -r1.779 -r1.780 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/cc/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/usr.bin/cc/t_asan_double_free.sh \
    src/tests/usr.bin/cc/t_asan_global_buffer_overflow.sh \
    src/tests/usr.bin/cc/t_asan_heap_overflow.sh \
    src/tests/usr.bin/cc/t_asan_off_by_one.sh \
    src/tests/usr.bin/cc/t_asan_uaf.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index