shithub: fuzz

Download patch

ref: a4ece5dca6b6015c257785f7652808e9e0386cf3
parent: 75322a9fa8904be2c25a4bdcdc926d9b31fd2e02
author: Steven Sleder <[email protected]>
date: Sat Nov 24 00:47:06 EST 2018

Fixed a prototype issue for string array mutation

--- a/mutate.c
+++ b/mutate.c
@@ -85,22 +85,13 @@
     }
 }
 
-/*
 int
-mut_charstar_arr(char*[]* in_val, int *round)
+mut_charstararr(char*** in_val, int *round)
 {
-    length = (rand() % (64 + 1 - 1) + 1);
-    if(*round == ROUND_NUM)
-    {
-        *in_val = rand();
-    }
-    else
-    {
-	int shifter = rand() % (4 + 1 - 0) + 0;
-	(*in_val) << shifter;
-    }
-    return length
-}*/
+    int length = (rand() % (64 + 1 - 1) + 1);
+
+    return length;
+}
 
 void
 mut_long(long* in_val, int *round)
--- a/mutate.h
+++ b/mutate.h
@@ -1,9 +1,6 @@
 #ifndef MUT_H
 #define MUT_H
 
-// Removed since we don't know the size of void pointer val, can't shift val
-//void shift_val(void*, int*);
-
 void mut_int(int*, int*);
 
 void mut_intstar(int**, int*);
@@ -16,7 +13,7 @@
 
 void mut_ucharstar(unsigned char**, int*);
 
-//int mut_char_star_arr(char*[]*, int*);
+int mut_charstararr(char***, int*);
 
 void mut_long(long*, int*);