Adds *fstat to the common interceptors.
Removes the now-duplicate fstat interceptor from msan/tsan
This adds fstat to asan/esan, which previously did not intercept it.
Resubmit of http://reviews.llvm.org/D20318 with ios build fixes.
Paths
| Differential D20350
[sanitizer] Move *fstat to the common interceptors ClosedPublic Authored by zhaoqin on May 17 2016, 9:26 PM.
Details Summary Adds *fstat to the common interceptors. Removes the now-duplicate fstat interceptor from msan/tsan Resubmit of http://reviews.llvm.org/D20318 with ios build fixes.
Diff Detail Event Timelinezhaoqin updated this object.
This revision is now accepted and ready to land.May 18 2016, 1:11 PM Closed by commit rL269981: [sanitizer] Move *fstat to the common interceptors (authored by aizatsky). · Explain WhyMay 18 2016, 1:56 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 57558 lib/asan/asan_interceptors.cc
lib/msan/msan_interceptors.cc
lib/sanitizer_common/sanitizer_common_interceptors.inc
lib/sanitizer_common/sanitizer_platform_interceptors.h
lib/tsan/rtl/tsan_interceptors.cc
|
The changes are the above three lines, I use the same define as _STAT, ___XSTAT, and ___XSTAT64
in http://reviews.llvm.org/D20318, it was
#define SANITIZER_INTERCEPT_FSTATAT SI_FREEBSD
#define SANITIZER_INTERCEPT___FXSTATAT !SI_FREEBSD && SI_NOT_WINDOWS
#define SANITIZER_INTERCEPT___FXSTATAT64 !SI_FREEBSD && SI_NOT_WINDOWS