[Lldb-commits] [PATCH] D114458: Make some libstd++ formatters safer

walter erquinigo via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Nov 23 10:13:31 PST 2021


wallace created this revision.
wallace requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.

We need to add checks that ensure that some core variables are valid, so
that we avoid printing out garbage data. The worst that could happen is
that an non-initialized variable is being printed as something with
123123432 children instead of 0.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D114458

Files:
  lldb/examples/synthetic/gnu_libstdcpp.py
  lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/bitset/TestDataFormatterGenericBitset.py
  lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/forward_list/TestDataFormatterGenericForwardList.py
  lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/multimap/TestDataFormatterGenericMultiMap.py
  lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/multimap/main.cpp
  lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/unordered/TestDataFormatterGenericUnordered.py
  lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/unordered/main.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114458.389247.patch
Type: text/x-patch
Size: 15783 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20211123/dc5fdaa5/attachment-0001.bin>


More information about the lldb-commits mailing list