This is an archive of the discontinued LLVM Phabricator instance.

[Sanitizer] Intercepts flopen/flopenat
ClosedPublic

Authored by devnexen on Jul 17 2021, 4:57 AM.

Diff Detail

Event Timeline

devnexen created this revision.Jul 17 2021, 4:57 AM
devnexen requested review of this revision.Jul 17 2021, 4:57 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 17 2021, 4:57 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
vitalybuka added inline comments.Jul 17 2021, 9:59 PM
compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
10057

maybe move it close to fopen?

10079

why do you need to define macro which used just one time? we use IMPL only for stuff which can be reused.
Could you please inline them as __xuname above?

compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
654 ↗(On Diff #359555)

unrelated, could you please land in a separate patch, OK without review

devnexen updated this revision to Diff 359597.Jul 17 2021, 11:26 PM
vitalybuka accepted this revision.Jul 19 2021, 11:35 AM
This revision is now accepted and ready to land.Jul 19 2021, 11:35 AM
This revision was landed with ongoing or failed builds.Jul 19 2021, 11:48 AM
This revision was automatically updated to reflect the committed changes.