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
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Time | Test | |
---|---|---|
420 ms | linux > HWAddressSanitizer-x86_64.TestCases::sizes.cpp |
Event Timeline
llvm/tools/llvm-yaml-parser-fuzzer/yaml-parser-fuzzer.cpp | ||
---|---|---|
15–16 | On further thought: should this be iterating through all the documents? |
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.
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.
clang-tidy: warning: invalid case style for function 'LLVMFuzzerTestOneInput' [readability-identifier-naming]
not useful