HomePhabricator

[asan] Add interceptor for printf_chk

Description

[asan] Add interceptor for printf_chk

There could be a situation when a specific DSO was built with FORTIFY_SOURCE option. In case asan-ed binary link against that DSO,
libasan can't handle the possible memory error because it does not have interceptors for spinrtf_chk, snprintf_chk, vprintf_chk,
vsnprintf_chk, __fprintf_chk functions. Let's interceptors for them.

Patch by Denis Khalikov.

Differential Revision: https://reviews.llvm.org/D40951

Details

Committed
chefmaxDec 18 2017, 7:31 AM
Differential Revision
D40951: [ASan] Add interceptor for printf_chk
Branches
Unknown
Tags
Unknown