shithub: fuzz

Download patch

ref: 318a223550e8b803e328bafe623b923d33b4cfec
parent: b5168499ad3ecc66ffe479199485372728c126ff
author: glenda <[email protected]>
date: Sat Nov 24 15:19:12 EST 2018

can fuzz getpid now?

--- a/fuzz.h
+++ b/fuzz.h
@@ -11,6 +11,7 @@
 #define NTYPES 4
 
 // Global variables
+// In main.c
 extern	int		logfd;
 extern	Lock	loglck;
 
--- a/input.c
+++ b/input.c
@@ -14,7 +14,7 @@
 	debug("DEBUG: sc_c = %d\n", sc->c);
 
 	// TODO
-	switch(sc->c -1) {
+	switch(sc->c) {
 		case sc_exits :			//	_exits(char*);
 			// mutate the input
 			mut_charstar((char**)((t_type*)lget(&(sc->inputs), 0))->var, &sc->round);
@@ -1063,6 +1063,9 @@
 				break;
 			case t_uchar :
 				dolog("t_uchar: %c\n", *(unsigned char*) ele->var);
+				break;
+			case t_void:
+				dolog("void: skipping over…\n");
 				break;
 			default :
 				fprint(2, "Error: Encountered unknown input variable type!\n");