This is an archive of the discontinued LLVM Phabricator instance.

[libc] remove use after free in tests.
ClosedPublic

Authored by michaelrj on Dec 12 2022, 1:22 PM.

Details

Summary

There were some tests added that attempted to access files after they
were closed to test errno behavior, this caused sanitizer issues. Those
portions of the tests have been disabled.

Diff Detail

Event Timeline

michaelrj created this revision.Dec 12 2022, 1:22 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptDec 12 2022, 1:22 PM
michaelrj requested review of this revision.Dec 12 2022, 1:22 PM
This revision was not accepted when it landed; it landed in state Needs Review.Dec 12 2022, 1:23 PM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
sivachandra added inline comments.
libc/test/src/stdio/fileop_test.cpp
128

Looks like these were added in https://reviews.llvm.org/D139576. If there are incorrect, they should be removed. If they are correct and the fix is expected to land separately, then please file a bug explaining the expected behavior in detail and add a TODO here which links to that bug.