[ASan] Add FORTIFY_SOURCE interceptors
authorDenis Khalikov <d.khalikov@partner.samsung.com>
Wed, 29 Nov 2017 11:21:07 +0000 (14:21 +0300)
committerSlava Barinov <v.barinov@samsung.com>
Thu, 24 Oct 2019 09:35:36 +0000 (12:35 +0300)
commit1b09439a6d801f06b87b3b0787ce25f44cb5cd19
treed3b7ebba387be0247812d08e5c98adf6f9a7fc00
parent3967e3403044ee1cb4a97cb2f0ec627fe8536c23
[ASan] Add FORTIFY_SOURCE interceptors

List of interceptors:
__strcat_chk,
__strncat_chk,
__strcpy_chk,
__strncpy_chk.
__poll_chk,
__ppoll_chk,
__read_chk,
__recv_chk,
__recvfrom_chk,
__pread_chk,
__pread64_chk.
__getgroups_chk,
__getcwd_chk,
__realpath_chk,
__confstr_chk.
__mbstowcs_chk,
__mbsrtowcs_chk,
__mbsnrtowcs_chk,
__wcstombs_chk,
__wcsrtombs_chk,
__wcsnrtombs_chk,
__wcrtomb_chk,
__ttyname_r_chk.

Change-Id: I16ef4d2d80089b96e5c51ea5160b706b35f9ce18
16 files changed:
gcc/testsuite/c-c++-common/asan/strcat-overflow-fortify-1.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/asan/strcpy-overflow-fortify-1.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/asan/strncat-overflow-fortify-1.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/asan/strncpy-overflow-fortify-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/asan/confstr-fortify-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/asan/getcwd-fortify-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/asan/mbsrtowcs-fortify-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/asan/mbstowcs-fortify-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/asan/realpath-fortify-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/asan/wcrtomb-fortify-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/asan/wcsrtombs-fortify-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/asan/wcstombs-fortify-1.c [new file with mode: 0644]
libsanitizer/asan/asan_interceptors.cc
libsanitizer/asan/asan_interceptors.h
libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h