[Tools] Add a fuzzing tool to help fuzzing D demangler
authorLuís Ferreira <contact@lsferreira.net>
Tue, 9 Nov 2021 20:40:45 +0000 (12:40 -0800)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 9 Nov 2021 20:45:25 +0000 (12:45 -0800)
commit9af467ed8b53adfe1c8d0788d874d7a8c08375de
tree75cf079720dbbea00db493ab3addf2d388af4b5d
parent3c47c5ca13b8a502de3272e8105548715947b7a8
[Tools] Add a fuzzing tool to help fuzzing D demangler

This patch adds a fuzzing helper tool for D demangler by feeding the demangler API with
pseudo-random null terminated strings with the help of libfuzzer heuristics.

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D111432
llvm/tools/llvm-dlang-demangle-fuzzer/CMakeLists.txt [new file with mode: 0644]
llvm/tools/llvm-dlang-demangle-fuzzer/DummyDemanglerFuzzer.cpp [new file with mode: 0644]
llvm/tools/llvm-dlang-demangle-fuzzer/llvm-dlang-demangle-fuzzer.cpp [new file with mode: 0644]