mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 05:32:28 +08:00
<rdar://problem/12378910> Fixing a potential crasher in the data formatters where we fail to check for NULL or empty class name
llvm-svn: 164870
This commit is contained in:
@@ -487,6 +487,9 @@ lldb_private::formatters::NSStringSummaryProvider (ValueObject& valobj, Stream&
|
||||
|
||||
const char* class_name = descriptor->GetClassName().GetCString();
|
||||
|
||||
if (!class_name || !*class_name)
|
||||
return false;
|
||||
|
||||
uint64_t info_bits_location = valobj_addr + ptr_size;
|
||||
if (process_sp->GetByteOrder() != lldb::eByteOrderLittle)
|
||||
info_bits_location += 3;
|
||||
|
||||
Reference in New Issue
Block a user