This is an archive of the discontinued LLVM Phabricator instance.

[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
This adds fstat to asan/esan, which previously did not intercept it.

Resubmit of http://reviews.llvm.org/D20318 with ios build fixes.

Diff Detail

Repository
rL LLVM

Event Timeline

zhaoqin updated this revision to Diff 57558.May 17 2016, 9:26 PM
zhaoqin retitled this revision from to [sanitizer] Move *fstat to the common interceptors.
zhaoqin updated this object.
zhaoqin added reviewers: aizatsky, eugenis, vitalybuka.
zhaoqin added subscribers: tberghammer, danalbert, srhines and 4 others.
aizatsky edited edge metadata.May 18 2016, 12:38 PM

Qin, what has changed for ios? I can't spot a difference.

zhaoqin added inline comments.May 18 2016, 1:01 PM
lib/sanitizer_common/sanitizer_platform_interceptors.h
310 ↗(On Diff #57558)

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

aizatsky accepted this revision.May 18 2016, 1:11 PM
aizatsky edited edge metadata.

I'll commit.

This revision is now accepted and ready to land.May 18 2016, 1:11 PM
This revision was automatically updated to reflect the committed changes.

Thanks and hope no bot broken (finger crossed).