This is essentially a clone of the existing fuzzer added in https://reviews.llvm.org/D50839, but for the top-level parser, and only testing for sanitizer violations.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/tools/llvm-yaml-parser-fuzzer/yaml-parser-fuzzer.cpp | ||
---|---|---|
16–17 | On further thought: should this be iterating through all the documents? |
Comment Actions
I suggest changing this patch to include the isValidYaml function from https://reviews.llvm.org/D84050 and call that, and then that revision can be rebased on top of this one. If you do that, this LGTM.
Comment Actions
This is what I ended up doing, thank you! I also adopted the vector<uint8_t> style here and copied back the matching comment from the next patch. Let me know if you notice any mistakes.
On further thought: should this be iterating through all the documents?