[Lldb-commits] [lldb] [lldb][CPlusPlusLanguage] Avoid redundant const char* -> StringRef roundtrip (PR #161499)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Wed Oct 1 05:02:53 PDT 2025


Michael137 wrote:

> > We've been seen (very sporadic) lifetime issues around this area.
> 
> Could the ConstString not be null terminated and sometimes the data after it happens to be interpretable as a string and sometimes it isn't?

Yea that was my running theory too. Could also be a rare case of memory corruption somewhere? Has never been flagged on a sanitized bot as far as I'm aware though. Worth keeping an eye out

https://github.com/llvm/llvm-project/pull/161499


More information about the lldb-commits mailing list