aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/TextAPI
diff options
context:
space:
mode:
authorIgor Kudrin <ikudrin@accesssoftek.com>2025-08-05 12:42:38 -0700
committerGitHub <noreply@github.com>2025-08-05 12:42:38 -0700
commitf8a4f61101bbed236adfeca58e59cac4b95afe15 (patch)
tree9b7b12b7067ecd9d973f0e93f8bdc3d1a75bef90 /llvm/lib/TextAPI
parentc19314f070e2479dc0116d9c86a8afc37e4ab036 (diff)
downloadllvm-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