Skip to content

Commit ec3ee55

Browse files
authored
Merge pull request #3445 from apple/🍒/FBI/957a5e987444
[lldb] Fix nullptr dereference in AppleObjCRuntimeV2
2 parents c047bc9 + 08a2a45 commit ec3ee55

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2009,6 +2009,11 @@ AppleObjCRuntimeV2::SharedCacheClassInfoExtractor::UpdateISAToDescriptorMap() {
20092009
const uint32_t num_classes = 128 * 1024;
20102010

20112011
UtilityFunction *get_class_info_code = GetClassInfoUtilityFunction(exe_ctx);
2012+
if (!get_class_info_code) {
2013+
// The callee will have already logged a useful error message.
2014+
return DescriptorMapUpdateResult::Fail();
2015+
}
2016+
20122017
FunctionCaller *get_shared_cache_class_info_function =
20132018
get_class_info_code->GetFunctionCaller();
20142019

0 commit comments

Comments
 (0)