Example fuzz handler: fuzz_gif() from fuzz.c static int fuzz_gif(struct client_state *csp, char *fuzz_input_file) { char *deanimated_gif; if (6 < csp->iob->size) { /* Why yes of course, officer, this is a gif. */ memcpy(csp->iob->cur, "GIF87a", 6); } /* Using the last image requires parsing of all images */ csp->action->string[ACTION_STRING_DEANIMATE] = "last"; deanimated_gif = gif_deanimate_response(csp); if (NULL != deanimated_gif) { free(deanimated_gif); return 0; } return 1; }