diff --git a/fuzzer/Fuzzer.java b/fuzzer/Fuzzer.java index 7e80788e33568a8a41ab863f0e992ad09d5eb887..039f23968fcb077c634e01a6a7b85aac2b97127f 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("JZ R0 -2"); + //pw.println("JZ R0 -2"); pw.println("RET R0"); }catch (Exception e){ diff --git a/src/machine-vuln4.c b/src/machine-vuln4.c index 28dd68aa8fb23cd90ea0ca3f4cd9d0d84bbf8f76..46b0e2e9bd7ccfe162e8f8df63499a5938fe478e 100644 --- a/src/machine-vuln4.c +++ b/src/machine-vuln4.c @@ -57,7 +57,7 @@ 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); + //Zmemset(memory,0,sizeof(int32_t)*MEMORY_SIZE); //memset(regs,0,sizeof(int32_t)*NUM_REGS); count = 0; } @@ -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; }