From b2991433cfa2a276c21e5b3db1161dc9f0f586f5 Mon Sep 17 00:00:00 2001 From: Zhaolin Deng <zhaolin.deng@student.unimelb.edu.au> Date: Sat, 13 Oct 2018 15:21:33 +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 4b0059e..6c9f460 100644 --- a/src/machine-vuln5.c +++ b/src/machine-vuln5.c @@ -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; + return -1; } }else{ debug_printf("Unrecognised opcode: %s\n",toks[0]); - return -1; + return -1; */ } count++; pc = pc + 1; -- GitLab