libcoap
libcoap copied to clipboard
How to fuzz coap_read()
Hi,
It seems to me that coap_read() is an interesting API to fuzz because it processes network data. How can I go about writing a test case to fuzz this API. The main issue I see is the use of sockets to obtain data from as against from memory (supplied by libFuzzer).
I have no simple suggestions.
I did think of memstream as an alternative to read from instead of a socket, but that always provides a null terminator.