Add some additional safety checks to the StructuredData access
authorJason Molenda <jmolenda@apple.com>
Wed, 9 Dec 2015 04:15:47 +0000 (04:15 +0000)
committerJason Molenda <jmolenda@apple.com>
Wed, 9 Dec 2015 04:15:47 +0000 (04:15 +0000)
commit12f79291771d6f4d2941afbee3028dc8ad2e232d
tree419399cf98cd564144c3cb7e5bc910a2e31b6088
parentb5104b58841ad7701412f52db04aeccfe91308b1
Add some additional safety checks to the StructuredData access
methods - lldb can still crash pretty easily on corrupt JSON text,
and these will help eliminate a bunch of cases where that would
result in a crash.  Some of the methods would check that e.g.
GetItemAtIndex would actually return an item before dereferencing it,
some would not, that kind of thing.

<rdar://problem/23768693>

llvm-svn: 255093
lldb/include/lldb/Core/StructuredData.h