Using something like https://llvm.org/docs/LibFuzzer.html
Using something like https://llvm.org/docs/LibFuzzer.html