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

Method isTypeName

src/HexRaysCodeXplorer/MSVCObjectFormatParser.cpp:244–266  ·  view source on GitHub ↗

Returns TRUE if known typename at address

Source from the content-addressed store, hash-verified

242
243// Returns TRUE if known typename at address
244bool RTTI::type_info::isTypeName(ea_t name)
245{
246 // char demangledStr[MAXSTR];
247 // Should start with a period
248 if (get_byte(name) == '.')
249 {
250 // Read the rest of the possible name string
251 qstring buffer;
252
253 if (readIdaString(name, buffer) && buffer.length() > 3)
254 {
255 // Should be valid if it properly demangles
256 // if (demangle_name(demangledStr, (MAXSTR), buffer, (MT_MSCOMP | MNG_NODEFINIT)) >= 0)
257 //if (LPSTR s = __unDName(NULL, buffer + 1 /*skip the '.'*/, 0, malloc, free, (UNDNAME_32_BIT_DECODE | UNDNAME_TYPE_ONLY)))
258 if ((buffer[0] == '.') && (buffer[1] == '?') && (buffer[2] == 'A') && (buffer[3] == 'V'))
259 {
260 // free(s);
261 return true;
262 }
263 }
264 }
265 return false;
266}
267
268// --------------------------- Complete Object Locator ---------------------------
269

Callers

nothing calls this directly

Calls 1

readIdaStringFunction · 0.85

Tested by

no test coverage detected