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

---
 src/machine-vuln5.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/machine-vuln5.c b/src/machine-vuln5.c
index 800675a..4b0059e 100644
--- a/src/machine-vuln5.c
+++ b/src/machine-vuln5.c
@@ -226,7 +226,7 @@ int execute(const unsigned int progLength, const int cycles, int32_t * res){
   unsigned int cyclesExecuted = 0;
   while(cycles > 0 ? cyclesExecuted < (unsigned int)cycles : true){
     cyclesExecuted++;
-    if (pc < 0 || pc >= (int)progLength){
+     if (pc >= (int)progLength){
       /* will cause an error but that is not a bug and
        * and indeed is what the VM is supposed to do if the pc becomes 
        * negative, since in this case the program's execution finishes 
-- 
GitLab