summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Sumnima Joshi <sumnima@google.com> 2017-08-11 11:07:48 -0700
committer Sumnima Joshi <sumnima@google.com> 2017-08-11 12:59:07 -0700
commit2658193433e4b49d7dd9096db6cda8dbd6dce714 (patch)
treef6f611f029c78530fd12a3c8183d684c97808f1f
parente9b61bac34bea439d8ce39592973a66a32f43fb7 (diff)
Fixed an error in invokechanger
Test: Ran dexfuzz until mutation showed up Change-Id: I7f75d1e173a2ac5fa63b059fdea532a3bef1b46d
-rw-r--r--tools/dexfuzz/src/dexfuzz/DexFuzz.java4
-rw-r--r--tools/dexfuzz/src/dexfuzz/program/mutators/InvokeChanger.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/dexfuzz/src/dexfuzz/DexFuzz.java b/tools/dexfuzz/src/dexfuzz/DexFuzz.java
index 1e37def905..feb5a132ca 100644
--- a/tools/dexfuzz/src/dexfuzz/DexFuzz.java
+++ b/tools/dexfuzz/src/dexfuzz/DexFuzz.java
@@ -33,9 +33,9 @@ import dexfuzz.listeners.UpdatingConsoleListener;
* Entrypoint class for dexfuzz.
*/
public class DexFuzz {
- // Last version update 1.8: Added a new mutation called NewInstanceChanger.
+ // Last version update 1.9: fixed a bug in InvokeChanger.
private static int majorVersion = 1;
- private static int minorVersion = 8;
+ private static int minorVersion = 9;
private static int seedChangeVersion = 0;
/**
diff --git a/tools/dexfuzz/src/dexfuzz/program/mutators/InvokeChanger.java b/tools/dexfuzz/src/dexfuzz/program/mutators/InvokeChanger.java
index 8750fc670c..f0ed83a88e 100644
--- a/tools/dexfuzz/src/dexfuzz/program/mutators/InvokeChanger.java
+++ b/tools/dexfuzz/src/dexfuzz/program/mutators/InvokeChanger.java
@@ -167,7 +167,7 @@ public class InvokeChanger extends CodeMutator {
}
private boolean isRangeInvokeInst(Opcode opcode){
- return Opcode.isBetween(opcode, Opcode.INVOKE_VIRTUAL, Opcode.INVOKE_INTERFACE);
+ return Opcode.isBetween(opcode, Opcode.INVOKE_VIRTUAL_RANGE, Opcode.INVOKE_INTERFACE_RANGE);
}