diff options
author | Igor Kudrin <ikudrin@accesssoftek.com> | 2025-08-05 12:42:38 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-05 12:42:38 -0700 |
commit | f8a4f61101bbed236adfeca58e59cac4b95afe15 (patch) | |
tree | 9b7b12b7067ecd9d973f0e93f8bdc3d1a75bef90 /llvm/lib/TextAPI | |
parent | c19314f070e2479dc0116d9c86a8afc37e4ab036 (diff) | |
download | llvm-f8a4f61101bbed236adfeca58e59cac4b95afe15.zip llvm-f8a4f61101bbed236adfeca58e59cac4b95afe15.tar.gz llvm-f8a4f61101bbed236adfeca58e59cac4b95afe15.tar.bz2 |
[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 ")
...
```
Diffstat (limited to 'llvm/lib/TextAPI')
0 files changed, 0 insertions, 0 deletions