commit | de74bdb3d2cf84f7a586dd23a7e0fc993359c791 | [log] [tgz] |
---|---|---|
author | Maxim Ostapenko <chefmax7@gmail.com> | Mon Dec 18 15:31:26 2017 +0000 |
committer | Maxim Ostapenko <chefmax7@gmail.com> | Mon Dec 18 15:31:26 2017 +0000 |
tree | af9fd118facc1654e8091c7d72d800198d79a8c6 | |
parent | 5fb624a3b80d669a41d95ff744bce361c2074fca [diff] |
[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 llvm-svn: 320990