This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Fix SBPlatform after f4be9ff6458f
ClosedPublic

Authored by bulbazord on Jun 14 2023, 2:17 PM.

Details

Summary

If you pass nullptr (or None from python) to SBPlatform::SetSDKRoot,
LLDB crashes. Let's be more resilient to nullptr here.

Diff Detail

Event Timeline

bulbazord created this revision.Jun 14 2023, 2:17 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 14 2023, 2:17 PM
bulbazord requested review of this revision.Jun 14 2023, 2:17 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 14 2023, 2:17 PM
mib accepted this revision.Jun 14 2023, 3:32 PM
This revision is now accepted and ready to land.Jun 14 2023, 3:32 PM
This revision was automatically updated to reflect the committed changes.