This is an archive of the discontinued LLVM Phabricator instance.

[libc++][Android] Avoid triggering fdsan in filebuf test
Needs ReviewPublic

Authored by rprichard on Oct 31 2022, 3:49 PM.

Details

Reviewers
ldionne
danalbert
Group Reviewers
Restricted Project
Summary

The fd is opened by std::filebuf, which uses stdio (FILE*). Attempting
to close the fd directly with close() would trigger fdsan.

Diff Detail

Event Timeline

rprichard created this revision.Oct 31 2022, 3:49 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 31 2022, 3:49 PM
Herald added a subscriber: danielkiss. · View Herald Transcript
rprichard requested review of this revision.Oct 31 2022, 3:49 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 31 2022, 3:49 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript