From a1015c164dac1415685b18d254a33c60f9ebe9e7 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Tue, 7 Sep 2021 23:03:09 -0400 Subject: Fix crash in objective c workflow. --- examples/workflows/objectivec/objectivec.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'examples/workflows/objectivec/objectivec.cpp') diff --git a/examples/workflows/objectivec/objectivec.cpp b/examples/workflows/objectivec/objectivec.cpp index f6cc4e47..b3272f94 100644 --- a/examples/workflows/objectivec/objectivec.cpp +++ b/examples/workflows/objectivec/objectivec.cpp @@ -79,6 +79,8 @@ extern "C" // auto cfStringSection = data->GetSectionByName("__cfstring"); // if (!cfStringSection) // return; + + gItr = g_classData.find(data->GetObject()); } auto& classData = gItr->second; @@ -131,6 +133,9 @@ extern "C" analysisContext->Inform("directRefs", "insert", impPtr, i->GetArchitecture(), instr.address); updated = true; } + // else + // LogError("ObjectiveC Workflow: missing classData for __objc_methname entry: 0x%" PRIx64 " at: 0x%" PRIx64, + // ssa->GetSSARegisterValue(selSSAReg).value, instr.address); } // else // LogError("Unhandled _objc_msgSend: 0x%" PRIx64, instr.address); -- cgit v1.3.1