llvm-project/lldb/unittests/Core
Petr Pavlu dbd7c338a0 Fix dumping of characters with non-standard sizes
* Prevent dumping of characters in DumpDataExtractor() with
  item_byte_size bigger than 8 bytes. This case is not supported by the
  code and results in a crash because the code calls
  DataExtractor::GetMaxU64Bitfield() -> GetMaxU64() that asserts for
  byte size > 8 bytes.
* Teach DataExtractor::GetMaxU64(), GetMaxU32(), GetMaxS64() and
  GetMaxU64_unchecked() how to handle byte sizes that are not a multiple
  of 2. This allows DumpDataExtractor() to dump characters and booleans
  with item_byte_size in the interval of [1, 8] bytes. Values that are
  not a multiple of 2 would previously result in a crash because they
  were not handled by GetMaxU64().

llvm-svn: 315444
2017-10-11 08:48:18 +00:00
..
ArchSpecTest.cpp Move Object format code to lib/BinaryFormat. 2017-06-07 03:48:56 +00:00
BroadcasterTest.cpp Fix build failure in unit test. 2017-04-06 21:57:39 +00:00
CMakeLists.txt Move Timer and TraceOptions from Core to Utility 2017-06-29 14:32:17 +00:00
DataExtractorTest.cpp Fix dumping of characters with non-standard sizes 2017-10-11 08:48:18 +00:00
ListenerTest.cpp Use Timeout<> in the Listener class 2016-11-30 10:41:42 +00:00
ScalarTest.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
StateTest.cpp Add format_provider for lldb::StateType 2017-01-24 11:48:25 +00:00
StreamCallbackTest.cpp Move many other files from Core -> Utility. 2017-03-06 18:34:25 +00:00