diff --git a/fuzzer/Fuzzer.java b/fuzzer/Fuzzer.java index 479a01efccaeedc602206883682452e8fe4d1a4b..9f7b1a8fc8ba40cd19ef5ddbe73b828ef8fd78fa 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 214ae3750eb52e1beb53dcca19d395dba6c1856c..5acfac9041cc4710ec70439b6ff3f5667dc23e2a 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; }