[all-commits] [llvm/llvm-project] 860f0b: [lldb][ConstString] Prevent GetString from constru...
Michael Buch via All-commits
all-commits at lists.llvm.org
Wed Jun 12 01:34:35 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 860f0b542ae32c507959201146242cd716222041
https://github.com/llvm/llvm-project/commit/860f0b542ae32c507959201146242cd716222041
Author: Michael Buch <michaelbuch12 at gmail.com>
Date: 2024-06-12 (Wed, 12 Jun 2024)
Changed paths:
M lldb/include/lldb/Utility/ConstString.h
M lldb/unittests/Utility/ConstStringTest.cpp
Log Message:
-----------
[lldb][ConstString] Prevent GetString from constructing a std::string with a nullptr (#95175)
This patch prevents passing a `nullptr` to the `std::string` constructor
in `GetString`. This prevents UB arising from calling `GetString` on a
default-constructed `ConstString`.
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