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:
JesusFreke@JesusFreke.com 2010-01-27 07:09:38 +00:00
parent 51cec00885
commit 6d11e9062d

View File

@ -1717,6 +1717,7 @@ public class MethodAnalyzer {
if (sourceRegisterType.category == RegisterType.Category.Unknown) {
return false;
}
//TODO: ensure sourceRegisterType is a Reference type?
RegisterType arrayRegisterType = analyzedInstruction.getPreInstructionRegisterType(instruction.getRegisterB());
assert arrayRegisterType != null;
@ -1972,7 +1973,7 @@ public class MethodAnalyzer {
if (sourceRegisterType.category == RegisterType.Category.Unknown) {
return false;
}
checkRegister(objectRegisterType, ReferenceCategories);
checkRegister(sourceRegisterType, ReferenceCategories);
//TODO: check access
//TODO: allow an uninitialized "this" reference, if the current method is an <init> method