mirror of
https://github.com/revanced/smali.git
synced 2025-05-05 00:54:25 +02:00
Fixed a crash when trying to look up the superclass for Object
git-svn-id: https://smali.googlecode.com/svn/trunk@459 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
parent
04473936a1
commit
cc4bbc46ea
@ -387,7 +387,7 @@ ClassObject *lookupSuperclass(char *classType)
|
||||
|
||||
if (clazz == NULL)
|
||||
return NULL;
|
||||
|
||||
|
||||
return clazz->super;
|
||||
}
|
||||
|
||||
@ -531,7 +531,7 @@ int main(int argc, char* const argv[])
|
||||
memcpy(buf, command, len);
|
||||
buf[len] = 0;
|
||||
|
||||
//printf("%s\n", buf);
|
||||
printf("%s\n", buf);
|
||||
|
||||
char *cmd = strtok(buf, " ");
|
||||
if (cmd == NULL) {
|
||||
@ -607,6 +607,13 @@ int main(int argc, char* const argv[])
|
||||
}
|
||||
|
||||
ClassObject *clazz = lookupSuperclass(classType);
|
||||
if (clazz == NULL)
|
||||
{
|
||||
fprintf(clientOut, "class: \n");
|
||||
fflush(clientOut);
|
||||
break;
|
||||
}
|
||||
|
||||
fprintf(clientOut, "class: %s\n", clazz->descriptor);
|
||||
fflush(clientOut);
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user