A demo project showcasing two vulnerabilities.
To find them on your own, download cifuzz.
Clone this repository and run
cifuzz run heap_buffer_overflow_test
to detect the heap buffer overflow or run
cifuzz run stack_buffer_overflow_test
to detect the stack buffer overflow.
To learn more about how to write your own fuzz tests have a look here.
If you want to learn more about fuzzing in general, head over to Code Intelligence.