mirror of
https://github.com/revanced/smali.git
synced 2025-06-13 04:27:38 +02:00
Add a check on the vtable index when doing a virtual method lookup
git-svn-id: https://smali.googlecode.com/svn/trunk@441 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
@ -426,6 +426,9 @@ public class Deodexerant {
|
|||||||
loadvtable();
|
loadvtable();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (index >= resolvedMethods.length) {
|
||||||
|
throw new RuntimeException("Invalid vtable index " + index + ". Too large.");
|
||||||
|
}
|
||||||
if (resolvedMethods[index] == null) {
|
if (resolvedMethods[index] == null) {
|
||||||
resolvedMethods[index] = parseAndResolveMethod(ClassType, MethodNames[index], MethodParams[index],
|
resolvedMethods[index] = parseAndResolveMethod(ClassType, MethodNames[index], MethodParams[index],
|
||||||
MethodRets[index]);
|
MethodRets[index]);
|
||||||
|
Reference in New Issue
Block a user