MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / GetSectionWithName

Method GetSectionWithName

view/sharedcache/core/ObjC.cpp:173–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173Ref<Section> SharedCacheObjCProcessor::GetSectionWithName(const char *sectionName)
174{
175 const auto controller = DSC::SharedCacheController::FromView(*m_data);
176 if (!controller)
177 return nullptr;
178
179 const auto image = controller->GetCache().GetImageAt(m_imageAddress);
180 if (!image)
181 return nullptr;
182
183 for (const auto& section : image->header->sectionNames)
184 if (section.find(sectionName) != std::string::npos)
185 return m_data->GetSectionByName(section);
186
187 return nullptr;
188}
189
190SharedCacheObjCProcessor::SharedCacheObjCProcessor(BinaryView *data, bool isBackedByDatabase, uint64_t imageAddress)
191 : ObjCProcessor(data, "SharedCache.ObjC", isBackedByDatabase, true)

Callers

nothing calls this directly

Calls 3

findMethod · 0.80
GetSectionByNameMethod · 0.80
GetImageAtMethod · 0.45

Tested by

no test coverage detected