[all-commits] [llvm/llvm-project] f8a4f6: [lldb] Avoid a crash after selecting an unknown pl...
Igor Kudrin via All-commits
all-commits at lists.llvm.org
Tue Aug 5 12:42:59 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f8a4f61101bbed236adfeca58e59cac4b95afe15
https://github.com/llvm/llvm-project/commit/f8a4f61101bbed236adfeca58e59cac4b95afe15
Author: Igor Kudrin <ikudrin at accesssoftek.com>
Date: 2025-08-05 (Tue, 05 Aug 2025)
Changed paths:
M lldb/source/Target/Platform.cpp
M lldb/unittests/Platform/PlatformTest.cpp
Log Message:
-----------
[lldb] Avoid a crash after selecting an unknown platform (#151803)
`PlatformList::Create()` added an item to the list even when
`Platform::Create()` returned `nullptr`. Other methods use these items
without checking, which can lead to a crash. For example:
```
> lldb
(lldb) platform select unknown
error: unable to find a plug-in for the platform named "unknown"
(lldb) file a.out-arm64
PLEASE submit a bug report to...
Stack dump:
0. Program arguments: lldb
1. HandleCommand(command = "file a.out-arm64 ")
...
```
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list