shithub: fuzz

Download patch

ref: 87d329f062aba9828067372b557a7dce635aef99
parent: 5c2a74d89740b674fc52691f28316950d633225f
author: Anthony House <tuffant21@aim.com>
date: Sat Nov 24 10:02:20 EST 2018

trying to find the bug

--- a/mutate.c
+++ b/mutate.c
@@ -16,30 +16,29 @@
 void
 mut_int(int* in_val, int *round)
 {
-    dolog("Round: %d", *round);
-    if(*round == ROUND_NUM)
-    {
-        *in_val = rand();
-    }
-    else
-    {
+//    if(*round == ROUND_NUM)
+//    {
+//        *in_val = rand();
+//    }
+//    else
+//    {
         (*in_val) << (rand() % (4 + 1 - 0) + 0);
         (*in_val) |= (rand() % (15 + 1 - 0) + 0);
-    }
+//    }
 }
 
 void
 mut_uint(unsigned int* in_val, int *round)
 {
-    if(*round == ROUND_NUM)
-    {
-        *in_val = rand();
-    }
-    else
-    {
+//    if(*round == ROUND_NUM)
+//    {
+//        *in_val = rand();
+//    }
+//    else
+//    {
         (*in_val) << (rand() % (4 + 1 - 0) + 0);
         (*in_val) |= (rand() % (15 + 1 - 0) + 0);
-    }
+//    }
 }
 
 void
@@ -84,15 +83,15 @@
 void
 mut_long(long* in_val, int *round)
 {
-    if(*round == ROUND_NUM)
-    {
-        //*in_val = rand();
-    }
-    else
-    {
+//    if(*round == ROUND_NUM)
+//    {
+//        //*in_val = rand();
+//    }
+//    else
+//    {
         (*in_val) << (rand() % (4 + 1 - 0) + 0);
         (*in_val) |= (rand() % (15 + 1 - 0) + 0);
-    }
+//    }
 }
 
 void
@@ -110,29 +109,29 @@
 void
 mut_ulong(unsigned long* in_val, int *round)
 {
-    if(*round == ROUND_NUM)
-    {
-        //*in_val = rand();
-    }
-    else
-    {
+//    if(*round == ROUND_NUM)
+//    {
+//        //*in_val = rand();
+//    }
+//    else
+//    {
         (*in_val) << (rand() % (4 + 1 - 0) + 0);
         (*in_val) |= (rand() % (15 + 1 - 0) + 0);
-    }
+//    }
 }
 
 void
 mut_vlong(long long* in_val, int *round)
 {
-    if(*round == ROUND_NUM)
-    {
-        //*in_val = rand();
-    }
-    else
-    {
+//    if(*round == ROUND_NUM)
+//    {
+//        //*in_val = rand();
+//    }
+//    else
+//    {
         (*in_val) << (rand() % (4 + 1 - 0) + 0);
         (*in_val) |= (rand() % (15 + 1 - 0) + 0);
-    }
+//    }
 }
 
 void