From 58a6e112c65499f062af99ad7256a0437d383cf2 Mon Sep 17 00:00:00 2001 From: an7s <an7s@git.zephyr-software.com> Date: Fri, 12 Jun 2015 00:51:19 +0000 Subject: [PATCH] use -1 for all bytes returned by CGC random syscall Former-commit-id: 2755a96c874fdf2b443376da84f4c6ed249c066e --- tools/c2e/c2e_instr.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/c2e/c2e_instr.cpp b/tools/c2e/c2e_instr.cpp index 86cc7e228..bfbb0ef77 100644 --- a/tools/c2e/c2e_instr.cpp +++ b/tools/c2e/c2e_instr.cpp @@ -353,7 +353,8 @@ L1: b8 00 00 00 00 mov $0x0,%eax after=insertAssemblyAfter(firp, after, "test ecx, ecx"); J1=after=insertAssemblyAfter(firp, after, "jle 0x0"); after=insertAssemblyAfter(firp, after, "mov eax, 0"); - L3=after=insertAssemblyAfter(firp, after, "mov [ebx+eax], al"); +// L3=after=insertAssemblyAfter(firp, after, "mov [ebx+eax], al"); + L3=after=insertAssemblyAfter(firp, after, "mov byte [ebx+eax], -1"); // give afl a better chance after=insertAssemblyAfter(firp, after, "add eax, 1"); after=insertAssemblyAfter(firp, after, "cmp eax, ecx"); J2=after=insertAssemblyAfter(firp, after, "jne 0x0"); -- GitLab