mirror of
https://github.com/revanced/smali.git
synced 2025-04-30 22:54:27 +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,
|
public static Value evaluateRegister(EvaluationContext context, final SmaliMethod smaliMethod,
|
||||||
final int registerNum, final String type) throws EvaluateException {
|
final int registerNum, final String type) throws EvaluateException {
|
||||||
|
|
||||||
|
if (registerNum >= smaliMethod.getRegisterCount()) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
final StackFrameProxy frameProxy = context.getSuspendContext().getFrameProxy();
|
final StackFrameProxy frameProxy = context.getSuspendContext().getFrameProxy();
|
||||||
if (frameProxy == null) {
|
if (frameProxy == null) {
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user