This is an archive of the discontinued LLVM Phabricator instance.

asan: fix crash in strdup on malloc failure
ClosedPublic

Authored by dvyukov on Feb 20 2023, 3:00 AM.

Details

Summary

There are some programs that try to handle all malloc failures.
Let's allow testing of such programs.

Diff Detail

Event Timeline

dvyukov created this revision.Feb 20 2023, 3:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 20 2023, 3:00 AM
Herald added a subscriber: Enna1. · View Herald Transcript
dvyukov requested review of this revision.Feb 20 2023, 3:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 20 2023, 3:00 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
melver accepted this revision.Feb 20 2023, 4:50 AM
This revision is now accepted and ready to land.Feb 20 2023, 4:50 AM
This revision was automatically updated to reflect the committed changes.