mirror of
https://github.com/revanced/smali.git
synced 2025-06-12 04:17:36 +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();
|
||||
}
|
||||
|
||||
if (index >= resolvedMethods.length) {
|
||||
throw new RuntimeException("Invalid vtable index " + index + ". Too large.");
|
||||
}
|
||||
if (resolvedMethods[index] == null) {
|
||||
resolvedMethods[index] = parseAndResolveMethod(ClassType, MethodNames[index], MethodParams[index],
|
||||
MethodRets[index]);
|
||||
|
Reference in New Issue
Block a user