From f38009f06cc83f7989a42ba5c46001889ddb18d8 Mon Sep 17 00:00:00 2001
From: Zhaolin Deng <zhaolin.deng@student.unimelb.edu.au>
Date: Sat, 13 Oct 2018 14:29:41 +0800
Subject: [PATCH] update fuzzer

---
 fuzzer/Fuzzer.java  | 5 ++---
 src/machine-vuln4.c | 2 +-
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/fuzzer/Fuzzer.java b/fuzzer/Fuzzer.java
index ebc1319..7e80788 100644
--- a/fuzzer/Fuzzer.java
+++ b/fuzzer/Fuzzer.java
@@ -31,10 +31,9 @@ public class Fuzzer {
                 pw.println("ADD R"+(x+1)+" R"+x +" R"+x);
             };
             pw.println("RET R31");*/
+            pw.println("JZ R0 -2"); 
             pw.println("RET R0");
-            pw.println("RET R0");        
-            pw.println("RET R0");       
-            pw.println("RET R0");
+ 
         }catch (Exception e){
             e.printStackTrace(System.err);
             System.exit(1);
diff --git a/src/machine-vuln4.c b/src/machine-vuln4.c
index 4f9a210..28dd68a 100644
--- a/src/machine-vuln4.c
+++ b/src/machine-vuln4.c
@@ -385,7 +385,7 @@ int execute(const unsigned int progLength, const int cycles, int32_t * res){
         /* this should never overflow given constraints on both pc and offs */
         pc  = pc + offs;
         count++;
-        continue; /* avoid default increment of pc below */
+       // continue; /* avoid default increment of pc below */
       }else{
         return -1;
       }
-- 
GitLab