[Lldb-commits] [PATCH] D72086: [lldb] Fix that SBThread.GetStopDescription is returning strings with uninitialized memory at the end.

Greg Clayton via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Jan 8 16:51:48 PST 2020


clayborg added inline comments.


================
Comment at: lldb/scripts/Python/python-typemaps.swig:124
    } else {
-      llvm::StringRef ref(static_cast<const char*>($1), result);
+      llvm::StringRef ref = static_cast<char*>($1);
       PythonString string(ref);
----------------
This assignment looks a bit goofy IMHO. Just remove result from original code?:

```
llvm::StringRef ref(static_cast<char*>($1));
```


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D72086/new/

https://reviews.llvm.org/D72086





More information about the lldb-commits mailing list