From 85d081e5d7c80e60a0a19fbebf268483c4db360b Mon Sep 17 00:00:00 2001
From: Zhaolin Deng <zhaolin.deng@student.unimelb.edu.au>
Date: Sat, 13 Oct 2018 15:27:42 +0800
Subject: [PATCH] update fuzzer

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

diff --git a/fuzzer/Fuzzer.java b/fuzzer/Fuzzer.java
index 479a01e..9f7b1a8 100644
--- a/fuzzer/Fuzzer.java
+++ b/fuzzer/Fuzzer.java
@@ -31,7 +31,7 @@ public class Fuzzer {
                 pw.println("ADD R"+(x+1)+" R"+x +" R"+x);
             };
             pw.println("RET R31");*/
-            pw.println("JMP -1"); 
+            pw.println("JMP -5"); 
             
         }catch (Exception e){
             e.printStackTrace(System.err);
diff --git a/src/machine-vuln5.c b/src/machine-vuln5.c
index 214ae37..5acfac9 100644
--- a/src/machine-vuln5.c
+++ b/src/machine-vuln5.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;
       }
@@ -404,7 +404,7 @@ int execute(const unsigned int progLength, const int cycles, int32_t * res){
           pc = pc + 1;
         }
         count++;
-        //continue; /* avoid default increment the pc below */
+        continue; /* avoid default increment the pc below */
       } else {
       return -1;
       }
-- 
GitLab