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

---
 fuzzer/Fuzzer.java  | 5 ++---
 src/machine-vuln5.c | 4 ++--
 src/pocs/poc4.s     | 1 +
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/fuzzer/Fuzzer.java b/fuzzer/Fuzzer.java
index 030ded0..479a01e 100644
--- a/fuzzer/Fuzzer.java
+++ b/fuzzer/Fuzzer.java
@@ -31,9 +31,8 @@ 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 R3");
- 
+            pw.println("JMP -1"); 
+            
         }catch (Exception e){
             e.printStackTrace(System.err);
             System.exit(1);
diff --git a/src/machine-vuln5.c b/src/machine-vuln5.c
index 916c9f6..800675a 100644
--- a/src/machine-vuln5.c
+++ b/src/machine-vuln5.c
@@ -57,8 +57,8 @@ unsigned int count = 0; /* counts number of instructions executed so far */
 static void machine_init(void){
   memory = malloc(sizeof(int32_t)*MEMORY_SIZE);
   regs = malloc(sizeof(int32_t)*NUM_REGS);
-  memset(memory,0,sizeof(int32_t)*MEMORY_SIZE);
-  memset(regs,0,sizeof(int32_t)*NUM_REGS);
+  //memset(memory,0,sizeof(int32_t)*MEMORY_SIZE);
+ // memset(regs,0,sizeof(int32_t)*NUM_REGS);
   count = 0;
 }
 
diff --git a/src/pocs/poc4.s b/src/pocs/poc4.s
index e69de29..3f00d45 100644
--- a/src/pocs/poc4.s
+++ b/src/pocs/poc4.s
@@ -0,0 +1 @@
+            pw.println("RET R31");
\ No newline at end of file
-- 
GitLab