[PATCH] D91573: [YAMLIO] Add a generic YAML fuzzer harness

Duncan P. N. Exon Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 17 19:05:12 PST 2020


dexonsmith added inline comments.


================
Comment at: llvm/tools/llvm-yaml-parser-fuzzer/yaml-parser-fuzzer.cpp:15-16
+  Input.erase(std::remove(Input.begin(), Input.end(), 0), Input.end());
+  llvm::yaml::Input YamlInput(Input);
+  YamlInput.setCurrentDocument();
+  return 0;
----------------
On further thought: should this be iterating through all the documents?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D91573/new/

https://reviews.llvm.org/D91573



More information about the llvm-commits mailing list