by d33 · 7y ago · 0 comments
I/O is a general problem for fuzzing and IMO the simplest/most general approach is to try and decompose the code under test to find a part that is able to accept a single input stream.
EDIT: e.g. for an SSL/TLS library -- if you had a
bool msg_create(msg_t *msg, void *input, size_t len_bytes)
function, you could fuzz that one easily.You can do the same thing with session IDs or similar. In general when you're fuzzing you want to fix your random seeds (and date/time inputs etc, as well as reset any external data store modified by the program back to initial conditions) - ideally your program being fuzzed is a pure function of its input.