mirror of
https://github.com/revanced/smali.git
synced 2025-05-06 17:34:34 +02:00
Fix the register check for the source register in handleIputObject, and add misc TODO
git-svn-id: https://smali.googlecode.com/svn/trunk@606 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
parent
51cec00885
commit
6d11e9062d
@ -1717,6 +1717,7 @@ public class MethodAnalyzer {
|
|||||||
if (sourceRegisterType.category == RegisterType.Category.Unknown) {
|
if (sourceRegisterType.category == RegisterType.Category.Unknown) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
//TODO: ensure sourceRegisterType is a Reference type?
|
||||||
|
|
||||||
RegisterType arrayRegisterType = analyzedInstruction.getPreInstructionRegisterType(instruction.getRegisterB());
|
RegisterType arrayRegisterType = analyzedInstruction.getPreInstructionRegisterType(instruction.getRegisterB());
|
||||||
assert arrayRegisterType != null;
|
assert arrayRegisterType != null;
|
||||||
@ -1972,7 +1973,7 @@ public class MethodAnalyzer {
|
|||||||
if (sourceRegisterType.category == RegisterType.Category.Unknown) {
|
if (sourceRegisterType.category == RegisterType.Category.Unknown) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
checkRegister(objectRegisterType, ReferenceCategories);
|
checkRegister(sourceRegisterType, ReferenceCategories);
|
||||||
|
|
||||||
//TODO: check access
|
//TODO: check access
|
||||||
//TODO: allow an uninitialized "this" reference, if the current method is an <init> method
|
//TODO: allow an uninitialized "this" reference, if the current method is an <init> method
|
||||||
|
Loading…
x
Reference in New Issue
Block a user