dqlite icon indicating copy to clipboard operation
dqlite copied to clipboard

Add fuzzing

Open daxmc99 opened this issue 5 years ago • 2 comments

SQLite has fuzzing integrated into it. See https://www.sqlite.org/src/artifact/ad79e867fb504338 I think DQLite would also benefit from fuzzing. Is there any interest in adding this to the project?

If so, would OSS-Fuzz be a candidate fuzzing tool?

Just looking to start the discussion if there is interest in adding fuzzing to this project

daxmc99 avatar Jan 20 '20 20:01 daxmc99

Whatever increase testing is welcome. Whether fuzzing and OSS-Fuzz is the best choice at this stage of dqlite's life I'm not really sure, in the sense that I would probably not work on that myself right now since I have other priorities, however contributions are welcome (as long as they only or mainly use the public API and don't reply on the internal implementation).

freeekanayaka avatar Jan 20 '20 22:01 freeekanayaka

I've got a very basic fuzzing target running locally: it stands up a single dqlite_node and feeds the fuzzer's input into the client side of the socket that's connected to the server. I found a couple of crashes with afl-fuzz (#465, #466), but I think that particular target is just too slow to get a satisfying yield of bugs. I'm experimenting with ways to make it faster.

cole-miller avatar Jan 27 '23 22:01 cole-miller