[all-commits] [llvm/llvm-project] e846fb: [lldb] Prevent passing a nullptr to std::string i...
Jonas Devlieghere via All-commits
all-commits at lists.llvm.org
Wed Jul 24 15:08:00 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e846fb48038a34d8df3ad7412bbdcf37e9e7acc9
https://github.com/llvm/llvm-project/commit/e846fb48038a34d8df3ad7412bbdcf37e9e7acc9
Author: Jonas Devlieghere <jonas at devlieghere.com>
Date: 2024-07-24 (Wed, 24 Jul 2024)
Changed paths:
M lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
Log Message:
-----------
[lldb] Prevent passing a nullptr to std::string in ObjectFileMachO (#100421)
Prevent passing a nullptr to std::string::insert in
ObjectFileMachO::GetDependentModules. Calling GetCString on an empty
ConstString will return a nullptr, which is undefined behavior. Instead,
use the GetString helper which will return an empty string in that case.
rdar://132388027
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