This is an archive of the discontinued LLVM Phabricator instance.

[libc] Handle allocation failures gracefully in FILE related API.
ClosedPublic

Authored by sivachandra on Dec 21 2022, 11:03 PM.

Details

Summary

Few uses of free have not yet been replaced by the custom operator
delete yet. They will be done in a follow up patch.

Diff Detail

Event Timeline

sivachandra created this revision.Dec 21 2022, 11:03 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptDec 21 2022, 11:03 PM
sivachandra requested review of this revision.Dec 21 2022, 11:03 PM
lntue accepted this revision.Dec 22 2022, 5:56 AM
This revision is now accepted and ready to land.Dec 22 2022, 5:56 AM
michaelrj accepted this revision.Dec 22 2022, 10:09 AM

LGTM with one nit

libc/src/__support/File/linux_file.cpp
146

could you delete this comment?

Remove a commented out line leftover from a pervious change.

This revision was landed with ongoing or failed builds.Dec 22 2022, 11:30 AM
This revision was automatically updated to reflect the committed changes.