MCPcopy Create free account
hub / github.com/REhints/HexRaysCodeXplorer / isValid2

Method isValid2

src/HexRaysCodeXplorer/MSVCObjectFormatParser.cpp:293–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291// Same as above but from an already validated type_info perspective
292
293bool RTTI::_RTTICompleteObjectLocator::isValid2(ea_t col)
294{
295 // 'signature' should be zero
296 UINT signature = -1;
297 if (!getVerify32_t((col + ea_t(offsetof(_RTTICompleteObjectLocator, signature))), signature) || signature != 0)
298 return false;
299
300 // Verify CHD
301 ea_t classDescriptor = getEa(col + offsetof(_RTTICompleteObjectLocator, classDescriptor));
302 if (classDescriptor && (classDescriptor != BADADDR))
303 return RTTI::_RTTIClassHierarchyDescriptor::isValid(classDescriptor, 0);
304
305 return false;
306}
307
308
309// --------------------------- Base Class Descriptor ---------------------------

Callers

nothing calls this directly

Calls 3

getVerify32_tFunction · 0.85
getEaFunction · 0.85
isValidFunction · 0.85

Tested by

no test coverage detected