mirror of
https://github.com/revanced/smali.git
synced 2025-04-30 14:44:26 +02:00
Don't attempt to evaluate an out-of-bounds register
This commit is contained in:
parent
ca0a4bdf37
commit
0e773cbe9b
@ -277,6 +277,10 @@ public class SmaliCodeFragmentFactory extends DefaultCodeFragmentFactory {
|
||||
public static Value evaluateRegister(EvaluationContext context, final SmaliMethod smaliMethod,
|
||||
final int registerNum, final String type) throws EvaluateException {
|
||||
|
||||
if (registerNum >= smaliMethod.getRegisterCount()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
final StackFrameProxy frameProxy = context.getSuspendContext().getFrameProxy();
|
||||
if (frameProxy == null) {
|
||||
return null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user