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

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Jan 13 02:21:51 PST 2020


labath accepted this revision.
labath added a comment.
This revision is now accepted and ready to land.

Overall, I think it would be nice to introduce some consistency into the return values of functions which fill out a user-provided buffer, but the thing which convinced me that a separate typemap is needed is utf8 handling. For functions like GetStopDescription, we should hopefully be able to guarantee that the returned value is a valid utf8 string (and so we can return a python string), but for things like GetSTOUT we most certainly cannot (a python `bytes` object would be more suitable)...


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

https://reviews.llvm.org/D72086





More information about the lldb-commits mailing list