diff options
| author | Brian Potchik <brian@vector35.com> | 2021-09-07 23:03:09 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2021-09-07 23:03:09 -0400 |
| commit | a1015c164dac1415685b18d254a33c60f9ebe9e7 (patch) | |
| tree | 2ff36156a2e33282157ce1544cd316080089fbb4 /examples/workflows/objectivec/objectivec.cpp | |
| parent | 840e3edf383a2a6749c368c2962cdd0049bfb19b (diff) | |
Fix crash in objective c workflow.
Diffstat (limited to 'examples/workflows/objectivec/objectivec.cpp')
| -rw-r--r-- | examples/workflows/objectivec/objectivec.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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); |
