As confirmation, running this locally found 2 crashes:
- trivial: crashes on file with no tokens
- lexer: hits an assertion failure on bytes: 0x5c,0xa,0x5c,0x1,0x65,0x5c,0xa
Paths
| Differential D125037
[pseudo] Add fuzzer for the pseudoparser. ClosedPublic Authored by sammccall on May 5 2022, 1:00 PM.
Details
Summary As confirmation, running this locally found 2 crashes:
Diff Detail
Event TimelineComment Actions Nice!
This revision is now accepted and ready to land.May 5 2022, 10:25 PM Closed by commit rG1616bd9ef4eb: [pseudo] Add fuzzer for the pseudoparser. (authored by sammccall). · Explain WhyMay 6 2022, 12:22 AM This revision was automatically updated to reflect the committed changes. sammccall marked an inline comment as done. Comment Actions This adds a false dependency between check-clang-pseudo and all of LLVM via the FuzzMutate library.
Revision Contents
Diff 427421 clang-tools-extra/pseudo/CMakeLists.txt
clang-tools-extra/pseudo/fuzzer/CMakeLists.txt
clang-tools-extra/pseudo/fuzzer/Fuzzer.cpp
clang-tools-extra/pseudo/fuzzer/Main.cpp
clang-tools-extra/pseudo/test/CMakeLists.txt
|
nit: I'd suggest using another name -- O looks similar to the number literal 0.