Let vtablecheck take class names instead of just vtable symbols (also fix line endings)
This commit is contained in:
parent
4364ba46e2
commit
ccc4386285
@ -39,6 +39,13 @@ int main(int argc, char **argv)
|
||||
|
||||
pVtable = (void **)dlsym(handle, argv[2]);
|
||||
|
||||
if (pVtable == NULL)
|
||||
{
|
||||
char startSym[128];
|
||||
snprintf(startSym, sizeof(startSym), "_ZTV%d%s", strlen(argv[2]), argv[2]);
|
||||
pVtable = (void **)dlsym(handle, startSym);
|
||||
}
|
||||
|
||||
if (pVtable == NULL)
|
||||
{
|
||||
fprintf(stderr, "Invalid vtable symbol \"%s\"\n", argv[2]);
|
||||
|
Loading…
Reference in New Issue
Block a user