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

---
 src/machine-vuln5.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/machine-vuln5.c b/src/machine-vuln5.c
index 6c9f460..214ae37 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;
       }
@@ -396,7 +396,7 @@ int execute(const unsigned int progLength, const int cycles, int32_t * res){
       unsigned int ra = 0; 
       int32_t offs = 0;
 
-      /*if (parseReg(toks[1],&ra) == 0 &&
+      if (parseReg(toks[1],&ra) == 0 &&
           parseOffset(toks[2],&offs) == 0){
         if (regs[ra] == 0){
           pc = pc + offs;
@@ -404,13 +404,13 @@ 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;
       }
     }else{
       debug_printf("Unrecognised opcode: %s\n",toks[0]);
-      return -1; */
+      return -1; 
     }
     count++;
     pc = pc + 1;
-- 
GitLab