The expression fuzzer checks an environment variable, LLDB_FUZZER_TARGET, to get the fuzzer target binary. This is fine, but internally our tooling for running fuzz tests only has proper handling for flag values. It's surprisingly complicated to add support for that, and allowing it to be passed via flag seems reasonable anyway.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
lldb/tools/lldb-fuzzer/lldb-expression-fuzzer/lldb-expression-fuzzer.cpp | ||
---|---|---|
65–67 | I think having a flag for the fuzzer target alongside the env variable is a good addition. My only wonder is if there should be an error message if no flag is specified so that anyone that uses this knows that they can use a flag as well. |
lldb/tools/lldb-fuzzer/lldb-expression-fuzzer/lldb-expression-fuzzer.cpp | ||
---|---|---|
65–67 | That makes sense -- let me know if the updated wording looks OK. |
I think having a flag for the fuzzer target alongside the env variable is a good addition. My only wonder is if there should be an error message if no flag is specified so that anyone that uses this knows that they can use a flag as well.